Class ImageReader

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

    public class ImageReader
    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
    -reader <> (property: reader)
        The image reader to use for checking the 'in use' state.
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Reader

        protected ImageReader m_Reader
        the image reader to use.
    • Constructor Detail

      • ImageReader

        public ImageReader()
    • Method Detail

      • setReader

        public void setReader​(ImageReader value)
        Sets the image reader to use for checking the file use.
        value - the reader
      • getReader

        public ImageReader getReader()
        Returns the image reader to use for checking the file use.
        the reader
      • readerTipText

        public String readerTipText()
        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