de.grogra.pf.io
public class ReaderSourceImpl extends FilterSourceBase implements ReaderSource
ReaderSource which wraps an existing
Reader.FilterSource.MetaDataKey<V>AUTO_PROGRESS, DESTINATION_FILE, DESTINATION_URL| Constructor and Description |
|---|
ReaderSourceImpl(java.io.Reader in,
java.lang.String systemId,
MimeType mimeType,
Registry r,
ModifiableMap metaData)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Reader |
getReader()
Returns a reader to obtain the data as a stream of characters.
|
java.lang.String |
getSystemId()
Returns a system id which identifies this source.
|
getFilter, getFlavor, getMetaData, getRegistry, initProgressMonitor, setMetaData, setProgress, setProgress0, setProgressImpl, toString, useAutoProgressclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFilter, getFlavor, getMetaData, initProgressMonitor, setMetaData, setProgressgetRegistrypublic ReaderSourceImpl(java.io.Reader in,
java.lang.String systemId,
MimeType mimeType,
Registry r,
ModifiableMap metaData)
in - the reader to be wrapped by the new instancesystemId - the system id for the readermimeType - the MIME type of the datar - registry which defines the context within which the new instance will be usedmetaData - some meta data, may be nullpublic java.io.Reader getReader()
ReaderSourcegetReader in interface ReaderSourcepublic java.lang.String getSystemId()
FilterSourcegetSystemId in interface FilterSource