Class FilterSourceBase

java.lang.Object
de.grogra.pf.io.FilterSourceBase
All Implemented Interfaces:
FilterSource, RegistryContext
Direct Known Subclasses:
DBSource, DOMSourceImpl, FileSource, InputStreamSourceImpl, NullSource, ObjectSourceImpl, ReaderSourceImpl, SAXSourceBase

public abstract class FilterSourceBase extends Object implements FilterSource
  • Constructor Details

  • Method Details

    • getFilter

      public final Filter getFilter()
      Description copied from interface: FilterSource
      Returns the 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.
      Specified by:
      getFilter in interface FilterSource
      Returns:
      the filter from which data is obtained, or null
    • getFlavor

      public final IOFlavor getFlavor()
      Description copied from interface: FilterSource
      Returns the IOFlavor of this data source. Depending on the flavor, this instance has to implement corresponding subinterfaces of FilterSource.
      Specified by:
      getFlavor in interface FilterSource
      Returns:
      the flavor of the data
    • getRegistry

      public final Registry getRegistry()
      Description copied from interface: RegistryContext
      Returns the Registry which is linked with this instance.
      Specified by:
      getRegistry in interface RegistryContext
      Returns:
      the registry linked with this instance
    • getMetaData

      public <V> V getMetaData(FilterSource.MetaDataKey<V> key, V defaultValue)
      Specified by:
      getMetaData in interface FilterSource
    • setMetaData

      public <V> void setMetaData(FilterSource.MetaDataKey<V> key, V value)
      Specified by:
      setMetaData in interface FilterSource
    • initProgressMonitor

      public void initProgressMonitor(ProgressMonitor monitor)
      Specified by:
      initProgressMonitor in interface FilterSource
    • useAutoProgress

      protected final boolean useAutoProgress()
    • setProgress

      public void setProgress(String text, float progress)
      Specified by:
      setProgress in interface FilterSource
    • setProgress0

      protected void setProgress0(String text, float progress)
    • setProgressImpl

      protected void setProgressImpl(String text, float progress)
    • toString

      public String toString()
      Overrides:
      toString in class Object