Class LogFileFilter

  • All Implemented Interfaces:
    FilenameFilter

    public class LogFileFilter
    extends Object
    implements FilenameFilter
    Class that implements the FileNameFilter and is used by the VerifierList to get the list of keyfiles and associated logfiles based on a filter criteria.
    • Constructor Detail

      • LogFileFilter

        public LogFileFilter​(String filter)
        Constructor that takes the filter as input to create the File Filter
        Parameters:
        filter - filter to create the File Filter.
    • Method Detail

      • accept

        public boolean accept​(File dir,
                              String name)
        Implementation of the accept method that creates a filter
        Specified by:
        accept in interface FilenameFilter
        Parameters:
        dir - the path to the location of the files.
        name - the name to be used.
        Returns:
        true if filter is created successfully.