org.eclipse.osgi.framework.internal.core
Class ReferenceInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.eclipse.osgi.framework.internal.core.ReferenceInputStream
All Implemented Interfaces:
java.io.Closeable

public class ReferenceInputStream
extends java.io.InputStream

InputStream subclass which provides a reference (via URL) to the data rather than allowing the input stream to be directly read.


Field Summary
protected  java.net.URL reference
           
 
Constructor Summary
ReferenceInputStream(java.net.URL reference)
           
 
Method Summary
 java.net.URL getReference()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reference

protected java.net.URL reference
Constructor Detail

ReferenceInputStream

public ReferenceInputStream(java.net.URL reference)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

getReference

public java.net.URL getReference()