Class ImageMetaDataExtractor

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, Serializable

    public class ImageMetaDataExtractor
    extends AbstractFileUseCheck
    Uses the specified image reader to load the file for checking the 'in use' state: if reading fails, then it is assumed the file is in use.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
    -extractor <adams.flow.transformer.metadata.AbstractMetaDataExtractor> (property: extractor)
        The meta-data extractor to use for checking the 'in use' state.
        default: adams.flow.transformer.metadata.MetaDataExtractor
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • ImageMetaDataExtractor

        public ImageMetaDataExtractor()
    • Method Detail

      • setExtractor

        public void setExtractor​(AbstractMetaDataExtractor value)
        Sets the meta-data extractor to use for checking the file use.
        value - the extractor
      • getExtractor

        public AbstractMetaDataExtractor getExtractor()
        Returns the meta-data extractor to use for checking the file use.
        the extractor
      • extractorTipText

        public String extractorTipText()
        Returns the tip text for this property.
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • isInUse

        public boolean isInUse​(File file)
        Checks whether the file is in use.
        Specified by:
        isInUse in class AbstractFileUseCheck
        file - the file to check
        true if in use