Class FileFilter


  • public class FileFilter
    extends Object
    A file filter using includes/excludes patterns.
    • Constructor Detail

      • FileFilter

        public FileFilter​(List<String> includes,
                          List<String> excludes)
        Construct a new FileFilter
        Parameters:
        includes - list of includes patterns
        excludes - list of excludes patterns
    • Method Detail

      • getFiles

        public List<FilegetFiles​(File directory)
                            throws IOException
        Returns a list of files.
        Parameters:
        directory - the directory to scan
        Returns:
        a list of files
        Throws:
        IOException - if file system access fails
      • getIncludes

        public String getIncludes()
        Get the includes pattern
        Returns:
        the pattern
      • getExcludes

        public String getExcludes()
        Get the excludes pattern
        Returns:
        the pattern