Class FileChecker

java.lang.Object
eu.bandm.tools.util3.FileChecker

public class FileChecker extends Object
Static methods checking the absence/presence of files, to be used by an application level user interface.
  • Constructor Details

    • FileChecker

      public FileChecker()
  • Method Details

    • checkInputFiles

      public static <D> void checkInputFiles(MessageReceiver<SimpleMessage<D>> msg, File[] dirs, File... files)
      Checks whether all input files/directories required by an application do exist. The non-dir files checked are naturally always input data, the dirs checked are normally places where to create new output files.
    • checkOutputFiles

      public static <D> void checkOutputFiles(MessageReceiver<SimpleMessage<D>> msg, File... files)
      Checks whether all simple output files of an application do NOT YET exist. Since normally an application does not replace existing dirs by new simple files automatically, such pre-existance yields an ERROR, while that of a simple file yields only a warning.