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:
Closeable

public class ReferenceInputStream
extends 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  URL reference
           
 
Constructor Summary
ReferenceInputStream(URL reference)
           
 
Method Summary
 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 URL reference
Constructor Detail

ReferenceInputStream

public ReferenceInputStream(URL reference)
Method Detail

read

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

getReference

public URL getReference()


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.