de.grogra.pf.io
public interface FilterSource extends RegistryContext
FilterSource represent data sources in the
pipeline of Filters.| Modifier and Type | Interface and Description |
|---|---|
static class |
FilterSource.MetaDataKey<V> |
| Modifier and Type | Field and Description |
|---|---|
static float |
AUTO_PROGRESS |
static FilterSource.MetaDataKey<java.io.File> |
DESTINATION_FILE |
static FilterSource.MetaDataKey<java.net.URL> |
DESTINATION_URL |
| 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) |
java.lang.String |
getSystemId()
Returns a system id which identifies this source.
|
void |
initProgressMonitor(ProgressMonitor monitor) |
<V> void |
setMetaData(FilterSource.MetaDataKey<V> key,
V value) |
void |
setProgress(java.lang.String text,
float progress) |
getRegistrystatic final float AUTO_PROGRESS
static final FilterSource.MetaDataKey<java.io.File> DESTINATION_FILE
static final FilterSource.MetaDataKey<java.net.URL> DESTINATION_URL
Filter getFilter()
Filter 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.nullIOFlavor getFlavor()
IOFlavor of this data source. Depending on the
flavor, this instance has to implement corresponding subinterfaces
of FilterSource.<V> V getMetaData(FilterSource.MetaDataKey<V> key, V defaultValue)
java.lang.String getSystemId()
void initProgressMonitor(ProgressMonitor monitor)
<V> void setMetaData(FilterSource.MetaDataKey<V> key, V value)
void setProgress(java.lang.String text,
float progress)