de.grogra.pf.io
public abstract class FilterSourceBase extends java.lang.Object implements FilterSource
FilterSource.MetaDataKey<V>AUTO_PROGRESS, DESTINATION_FILE, DESTINATION_URL| Constructor and Description |
|---|
FilterSourceBase(IOFlavor flavor,
Registry registry,
ModifiableMap metaData) |
| Modifier and Type | Method and Description |
|---|---|
Filter |
getFilter()
Returns the
Filter from which this instance obtains its data. |
IOFlavor |
getFlavor()
Returns the
IOFlavor of this data source. |
<V> V |
getMetaData(FilterSource.MetaDataKey<V> key,
V defaultValue) |
Registry |
getRegistry()
Returns the
Registry which is linked with this instance. |
void |
initProgressMonitor(ProgressMonitor monitor) |
<V> void |
setMetaData(FilterSource.MetaDataKey<V> key,
V value) |
void |
setProgress(java.lang.String text,
float progress) |
protected void |
setProgress0(java.lang.String text,
float progress) |
protected void |
setProgressImpl(java.lang.String text,
float progress) |
java.lang.String |
toString() |
protected boolean |
useAutoProgress() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSystemIdpublic FilterSourceBase(IOFlavor flavor, Registry registry, ModifiableMap metaData)
public final Filter getFilter()
FilterSourceFilter 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 returns null.getFilter in interface FilterSourcenullpublic final IOFlavor getFlavor()
FilterSourceIOFlavor of this data source. Depending on the
flavor, this instance has to implement corresponding subinterfaces
of FilterSource.getFlavor in interface FilterSourcepublic <V> V getMetaData(FilterSource.MetaDataKey<V> key, V defaultValue)
getMetaData in interface FilterSourcepublic final Registry getRegistry()
RegistryContextRegistry which is linked with this instance.getRegistry in interface RegistryContextpublic void initProgressMonitor(ProgressMonitor monitor)
initProgressMonitor in interface FilterSourcepublic <V> void setMetaData(FilterSource.MetaDataKey<V> key, V value)
setMetaData in interface FilterSourcepublic void setProgress(java.lang.String text,
float progress)
setProgress in interface FilterSourceprotected void setProgress0(java.lang.String text,
float progress)
protected void setProgressImpl(java.lang.String text,
float progress)
public java.lang.String toString()
toString in class java.lang.Objectprotected final boolean useAutoProgress()