java.lang.Object
de.grogra.pf.io.FilterSourceBase
- All Implemented Interfaces:
FilterSource
,RegistryContext
- Direct Known Subclasses:
DOMSourceImpl
,FileSource
,InputStreamSourceImpl
,NullSource
,ObjectSourceImpl
,ReaderSourceImpl
,SAXSourceBase
-
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
ConstructorsConstructorDescriptionFilterSourceBase
(IOFlavor flavor, Registry registry, ModifiableMap metaData) -
Method Summary
Modifier and TypeMethodDescriptionfinal Filter
Returns theFilter
from which this instance obtains its data.final IOFlavor
Returns theIOFlavor
of this data source.<V> V
getMetaData
(FilterSource.MetaDataKey<V> key, V defaultValue) final Registry
Returns theRegistry
which is linked with this instance.void
initProgressMonitor
(ProgressMonitor monitor) <V> void
setMetaData
(FilterSource.MetaDataKey<V> key, V value) void
setProgress
(String text, float progress) protected void
setProgress0
(String text, float progress) protected void
setProgressImpl
(String text, float progress) toString()
protected final boolean
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
getSystemId
-
Constructor Details
-
FilterSourceBase
-
-
Method Details
-
getFilter
Description copied from interface:FilterSource
Returns theFilter
from which this instance obtains its data. If there is no such filter, i.e., if this is the first object in the filter pipeline, this method returnsnull
.- Specified by:
getFilter
in interfaceFilterSource
- Returns:
- the filter from which data is obtained, or
null
-
getFlavor
Description copied from interface:FilterSource
Returns theIOFlavor
of this data source. Depending on the flavor, this instance has to implement corresponding subinterfaces ofFilterSource
.- Specified by:
getFlavor
in interfaceFilterSource
- Returns:
- the flavor of the data
-
getRegistry
Description copied from interface:RegistryContext
Returns theRegistry
which is linked with this instance.- Specified by:
getRegistry
in interfaceRegistryContext
- Returns:
- the registry linked with this instance
-
getMetaData
- Specified by:
getMetaData
in interfaceFilterSource
-
setMetaData
- Specified by:
setMetaData
in interfaceFilterSource
-
initProgressMonitor
- Specified by:
initProgressMonitor
in interfaceFilterSource
-
useAutoProgress
protected final boolean useAutoProgress() -
setProgress
- Specified by:
setProgress
in interfaceFilterSource
-
setProgress0
-
setProgressImpl
-
toString
-