Class ReferenceInputStream
java.lang.Object
java.io.InputStream
org.eclipse.osgi.storage.url.reference.ReferenceInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ContentProvider
InputStream subclass which provides a reference (via File) to the data rather
than allowing the input stream to be directly read.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.osgi.storage.ContentProvider
ContentProvider.Type
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ReferenceInputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
getReference
-
getContent
Description copied from interface:ContentProvider
A file of the content, may benull
- Specified by:
getContent
in interfaceContentProvider
- Returns:
- the file, may be
null
-
getType
Description copied from interface:ContentProvider
The type of content- Specified by:
getType
in interfaceContentProvider
- Returns:
- the type of content
-