Java org.apache.commons.io FilenameUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.io FilenameUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.io FilenameUtils.

The text is from its open source code.

Subclass

org.apache.commons.io.FilenameUtils has subclasses.
Click this link to see all its subclasses.

Field

charEXTENSION_SEPARATOR
The extension separator character.
StringEXTENSION_SEPARATOR_STR
The extension separator String.

Constructor

FilenameUtils()
Instances should NOT be constructed in standard programming.

Method

Stringconcat(String basePath, String fullFilenameToAdd)
Concatenates a filename to a base path using normal command line style rules.
booleanequals(String filename1, String filename2, boolean normalized, IOCase caseSensitivity)
Checks whether two filenames are equal, optionally normalizing and providing control over the case-sensitivity.
booleanequals(String filename1, String filename2)
Checks whether two filenames are equal exactly.
booleanequalsNormalized(String filename1, String filename2)
Checks whether two filenames are equal after both have been normalized.
booleanequalsNormalizedOnSystem(String filename1, String filename2)
Checks whether two filenames are equal after both have been normalized and using the case rules of the system.
booleanequalsOnSystem(String filename1, String filename2)
Checks whether two filenames are equal using the case rules of the system.
StringgetBaseName(String filename)
Gets the base name, minus the full path and extension, from a full filename.
StringgetExtension(String filename)
Gets the extension of a filename.
StringgetFullPath(String filename)
Gets the full path from a full filename, which is the prefix + path.
StringgetFullPathNoEndSeparator(String filename)
Gets the full path from a full filename, which is the prefix + path, and also excluding the final directory separator.
StringgetName(String filename)
Gets the name minus the path from a full filename.
StringgetPath(String filename)
Gets the path from a full filename, which excludes the prefix.
StringgetPathNoEndSeparator(String filename)
Gets the path from a full filename, which excludes the prefix, and also excluding the final directory separator.
StringgetPrefix(String filename)
Gets the prefix from a full filename, such as C:/ or ~/.
intgetPrefixLength(String filename)
Returns the length of the filename prefix, such as C:/ or ~/.
intindexOfExtension(String filename)
Returns the index of the last extension separator character, which is a dot.
intindexOfLastSeparator(String filename)
Returns the index of the last directory separator character.
booleanisExtension(String filename, String extension)
Checks whether the extension of the filename is that specified.
booleanisExtension(String filename, String[] extensions)
Checks whether the extension of the filename is one of those specified.
booleanisExtension(String filename, Collection extensions)
Checks whether the extension of the filename is one of those specified.
Stringnormalize(String filename)
Normalizes a path, removing double and single dot path steps.
Stringnormalize(String filename, boolean unixSeparator)
Normalizes a path, removing double and single dot path steps.
StringnormalizeNoEndSeparator(String filename)
Normalizes a path, removing double and single dot path steps, and removing any final directory separator.
StringnormalizeNoEndSeparator(String filename, boolean unixSeparator)
Normalizes a path, removing double and single dot path steps, and removing any final directory separator.
StringremoveExtension(String filename)
Removes the extension from a filename.
StringseparatorsToSystem(String path)
Converts all separators to the system separator.
StringseparatorsToUnix(String path)
Converts all separators to the Unix separator of forward slash.
StringseparatorsToWindows(String path)
Converts all separators to the Windows separator of backslash.
booleanwildcardMatch(String filename, String wildcardMatcher)
Checks a filename to see if it matches the specified wildcard matcher, always testing case-sensitive.
booleanwildcardMatch(String filename, String wildcardMatcher, IOCase caseSensitivity)
Checks a filename to see if it matches the specified wildcard matcher allowing control over case-sensitivity.
booleanwildcardMatchOnSystem(String filename, String wildcardMatcher)
Checks a filename to see if it matches the specified wildcard matcher using the case rules of the system.