1 11 package org.eclipse.update.internal.core; 12 13 import java.io.File ; 14 import java.io.IOException ; 15 import java.io.InputStream ; 16 import java.net.URL ; 17 18 import org.eclipse.update.core.ContentReference; 19 20 35 public class NullContentReference extends ContentReference { 36 37 38 43 public NullContentReference(String id) { 44 super(id, (File ) null); 45 } 46 52 public ContentReference createContentReference(String id, File file) { 53 return new NullContentReference(id); 54 } 55 56 61 public InputStream getInputStream() throws IOException { 62 return null; 63 } 64 69 public File asFile() throws IOException { 70 return null; 71 } 72 73 78 public URL asURL() throws IOException { 79 return null; 80 } 81 82 87 public String toString() { 88 return "Missing archive file: " + '(' + getIdentifier() + ')'; } 90 } 91 | Popular Tags |