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:
readin classInputStream- Throws:
IOException
-
getReference
-
getContent
Description copied from interface:ContentProviderA file of the content, may benull- Specified by:
getContentin interfaceContentProvider- Returns:
- the file, may be
null
-
getType
Description copied from interface:ContentProviderThe type of content- Specified by:
getTypein interfaceContentProvider- Returns:
- the type of content
-