Class GeneralFileFilter

    • Field Detail

      • fileNamePattern

        protected LinkedList fileNamePattern
      • wildCard

        protected char wildCard
    • Constructor Detail

      • GeneralFileFilter

        public GeneralFileFilter​(LinkedList fileNamePattern)
      • GeneralFileFilter

        public GeneralFileFilter​(LinkedList fileNamePattern,
                                 char wildCard)
        Constructor accepts a list of pattern and a wildcard character for the pattern.
        Parameters:
        fileNamePattern - A list of patterns.
        wildCard - A character which is used as wildcard character.
    • Method Detail

      • accept

        public boolean accept​(File path)
        Overrided method of FileFilter to check whether to accept a path.
        Specified by:
        accept in interface FileFilter