java.lang.Object
de.grogra.pf.io.FilterSourceBase
de.grogra.pf.io.InputStreamSourceImpl
- All Implemented Interfaces:
FilterSource
,InputStreamSource
,RegistryContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.grogra.pf.io.FilterSource
FilterSource.MetaDataKey<V>
-
Field Summary
Fields inherited from interface de.grogra.pf.io.FilterSource
AUTO_PROGRESS, DESTINATION_FILE, DESTINATION_URL
-
Constructor Summary
ConstructorDescriptionInputStreamSourceImpl
(InputStream in, String systemId, MimeType mimeType, Registry r, ModifiableMap metaData) -
Method Summary
Modifier and TypeMethodDescriptionReturns a stream to obtain the data as a stream of bytes.Returns a system id which identifies this source.long
length()
Returns the total number of bytes of this stream.Methods inherited from class de.grogra.pf.io.FilterSourceBase
getFilter, getFlavor, getMetaData, getRegistry, initProgressMonitor, setMetaData, setProgress, setProgress0, setProgressImpl, toString, useAutoProgress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.grogra.pf.io.FilterSource
getFilter, getFlavor, getMetaData, initProgressMonitor, setMetaData, setProgress
Methods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistry
-
Constructor Details
-
InputStreamSourceImpl
public InputStreamSourceImpl(InputStream in, String systemId, MimeType mimeType, Registry r, ModifiableMap metaData)
-
-
Method Details
-
getSystemId
Description copied from interface:FilterSource
Returns a system id which identifies this source.- Specified by:
getSystemId
in interfaceFilterSource
- Returns:
- system id
-
getInputStream
Description copied from interface:InputStreamSource
Returns a stream to obtain the data as a stream of bytes.- Specified by:
getInputStream
in interfaceInputStreamSource
- Returns:
- an input stream for the data
-
length
public long length()Description copied from interface:InputStreamSource
Returns the total number of bytes of this stream. A negative values indicates that this number is unknown.- Specified by:
length
in interfaceInputStreamSource
- Returns:
- number of bytes
-