Package | Description |
---|---|
org.apache.commons.io |
This package defines utility classes for working with streams, readers,
writers and files.
|
org.apache.commons.io.comparator |
This package provides various
Comparator implementations
for File s. |
org.apache.commons.io.filefilter |
This package defines an interface (IOFileFilter) that combines both
FileFilter and FilenameFilter . |
org.apache.commons.io.monitor |
This package provides a component for monitoring file system events
(directory and file create, update and delete events).
|
Modifier and Type | Method and Description |
---|---|
static IOCase |
IOCase.forName(String name)
Factory method to create an IOCase from a name.
|
static IOCase |
IOCase.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IOCase[] |
IOCase.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
FilenameUtils.equals(String filename1,
String filename2,
boolean normalized,
IOCase caseSensitivity)
Checks whether two filenames are equal, optionally normalizing and providing
control over the case-sensitivity.
|
static boolean |
FilenameUtils.wildcardMatch(String filename,
String wildcardMatcher,
IOCase caseSensitivity)
Checks a filename to see if it matches the specified wildcard matcher
allowing control over case-sensitivity.
|
Constructor and Description |
---|
ExtensionFileComparator(IOCase caseSensitivity)
Construct a file extension comparator instance with the specified case-sensitivity.
|
NameFileComparator(IOCase caseSensitivity)
Construct a file name comparator instance with the specified case-sensitivity.
|
PathFileComparator(IOCase caseSensitivity)
Construct a file path comparator instance with the specified case-sensitivity.
|
Modifier and Type | Method and Description |
---|---|
static IOFileFilter |
FileFilterUtils.nameFileFilter(String name,
IOCase caseSensitivity)
Returns a filter that returns true if the filename matches the specified text.
|
static IOFileFilter |
FileFilterUtils.prefixFileFilter(String prefix,
IOCase caseSensitivity)
Returns a filter that returns true if the filename starts with the specified text.
|
static IOFileFilter |
FileFilterUtils.suffixFileFilter(String suffix,
IOCase caseSensitivity)
Returns a filter that returns true if the filename ends with the specified text.
|
Constructor and Description |
---|
NameFileFilter(List<String> names,
IOCase caseSensitivity)
Constructs a new name file filter for a list of names specifying case-sensitivity.
|
NameFileFilter(String[] names,
IOCase caseSensitivity)
Constructs a new name file filter for an array of names specifying case-sensitivity.
|
NameFileFilter(String name,
IOCase caseSensitivity)
Construct a new name file filter specifying case-sensitivity.
|
PrefixFileFilter(List<String> prefixes,
IOCase caseSensitivity)
Constructs a new Prefix file filter for a list of prefixes
specifying case-sensitivity.
|
PrefixFileFilter(String[] prefixes,
IOCase caseSensitivity)
Constructs a new Prefix file filter for any of an array of prefixes
specifying case-sensitivity.
|
PrefixFileFilter(String prefix,
IOCase caseSensitivity)
Constructs a new Prefix file filter for a single prefix
specifying case-sensitivity.
|
RegexFileFilter(String pattern,
IOCase caseSensitivity)
Construct a new regular expression filter with the specified flags case sensitivity.
|
SuffixFileFilter(List<String> suffixes,
IOCase caseSensitivity)
Constructs a new Suffix file filter for a list of suffixes
specifying case-sensitivity.
|
SuffixFileFilter(String[] suffixes,
IOCase caseSensitivity)
Constructs a new Suffix file filter for an array of suffixs
specifying case-sensitivity.
|
SuffixFileFilter(String suffix,
IOCase caseSensitivity)
Constructs a new Suffix file filter for a single extension
specifying case-sensitivity.
|
WildcardFileFilter(List<String> wildcards,
IOCase caseSensitivity)
Construct a new wildcard filter for a list of wildcards specifying case-sensitivity.
|
WildcardFileFilter(String[] wildcards,
IOCase caseSensitivity)
Construct a new wildcard filter for an array of wildcards specifying case-sensitivity.
|
WildcardFileFilter(String wildcard,
IOCase caseSensitivity)
Construct a new wildcard filter for a single wildcard specifying case-sensitivity.
|
Constructor and Description |
---|
FileAlterationObserver(FileEntry rootEntry,
FileFilter fileFilter,
IOCase caseSensitivity)
Construct an observer for the specified directory, file filter and
file comparator.
|
FileAlterationObserver(File directory,
FileFilter fileFilter,
IOCase caseSensitivity)
Construct an observer for the specified directory, file filter and
file comparator.
|
FileAlterationObserver(String directoryName,
FileFilter fileFilter,
IOCase caseSensitivity)
Construct an observer for the specified directory, file filter and
file comparator.
|
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.