Package com.sun.identity.tools.manifest
Class GeneralFileFilter
- java.lang.Object
-
- com.sun.identity.tools.manifest.GeneralFileFilter
-
- All Implemented Interfaces:
ManifestConstants
,FileFilter
public class GeneralFileFilter extends Object implements FileFilter, ManifestConstants
-
-
Field Summary
Fields Modifier and Type Field Description protected LinkedList
fileNamePattern
protected char
wildCard
-
Fields inherited from interface com.sun.identity.tools.manifest.ManifestConstants
ALL_SUFFIX, BUFFER_SIZE, DEFAULT_DIGEST_HANDLEJAR, DEFAULT_DIGEST_HANDLEWAR, DEFAULT_IDENTIFIER_ENTRY, DEFAULT_MANIFEST_FILE_NAME, DEFAULT_MANIFEST_PATTERN, DEFAULT_OVERWRITE, DEFAULT_RECURSIVE, DEFAULT_VERBOSE, DEFAULT_WILD_CARD, DEFAULT_WILDCARD_CHAR, DELETE_SUFFIX, DEST_FILE_PATH, DIGEST_ALG, DIGEST_HANDLEJAR, DIGEST_HANDLEWAR, DRYRUN_OPTION, EQUAL, EXCLUDE_PATTERN, FILE_SEPARATOR, HEADER_FILE_PATH, IDENTIFIER_ENTRY, IDENTIFIER_SEPARATOR, INCLUDE_PATTERN, JAR_FILE_EXT, LATEST_WAR_FILE, MANIFEST_CREATE_FILE, MANIFEST_FILE_NAME, MANIFEST_NAME, MANIFEST_PATTERN, OVERWRITE, PATTERN_SEPARATOR, PROPERTIES_FILE, RECURSIVE, SHA1, SRC_FILE_PATH, VERBOSE_OPTION, VERSION_FILE, WAR_FILE_EXT, WILDCARD_CHAR
-
-
Constructor Summary
Constructors Constructor Description GeneralFileFilter(LinkedList fileNamePattern)
GeneralFileFilter(LinkedList fileNamePattern, char wildCard)
Constructor accepts a list of pattern and a wildcard character for the pattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(File path)
Overrided method of FileFilter to check whether to accept a path.
-
-
-
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 interfaceFileFilter
-
-