Class FileIncomplete

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

    public class FileIncomplete
    extends AbstractFileUseCheck
    Assumes the file to be in use when not complete, i.e., still being written.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
        min-user-mode: Expert
     
    -check <adams.core.io.filecomplete.AbstractFileCompleteCheck> (property: check)
        The check scheme to use for checking the 'in use' state (incomplete -> in
        use).
        default: adams.core.io.filecomplete.NoCheck
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • FileIncomplete

        public FileIncomplete()
    • Method Detail

      • setCheck

        public void setCheck​(AbstractFileCompleteCheck value)
        Sets the file check to use for checking the completeness.
        Parameters:
        value - the check
      • getCheck

        public AbstractFileCompleteCheck getCheck()
        Returns the file check to use for checking the completeness.
        Returns:
        the check
      • checkTipText

        public String checkTipText()
        Returns the tip text for this property.
        Returns:
        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
        Parameters:
        file - the file to check
        Returns:
        true if in use