1 11 12 package org.eclipse.osgi.framework.internal.core; 13 14 import java.io.IOException ; 15 import java.io.InputStream ; 16 import java.net.URLConnection ; 17 18 24 public class BundleSource extends URLConnection { 25 private InputStream in; 26 27 protected BundleSource(InputStream in) { 28 super(null); 29 this.in = in; 30 } 31 32 public void connect() throws IOException { 33 connected = true; 34 } 35 36 public InputStream getInputStream() throws IOException { 37 return (in); 38 } 39 } 40 | Popular Tags |