Example usage for Java org.apache.commons.io FilenameUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
char | EXTENSION_SEPARATOR The extension separator character. |
String | EXTENSION_SEPARATOR_STR The extension separator String. |
FilenameUtils() Instances should NOT be constructed in standard programming. |
String | concat(String basePath, String fullFilenameToAdd) Concatenates a filename to a base path using normal command line style rules. |
boolean | equals(String filename1, String filename2, boolean normalized, IOCase caseSensitivity) Checks whether two filenames are equal, optionally normalizing and providing control over the case-sensitivity. |
boolean | equals(String filename1, String filename2) Checks whether two filenames are equal exactly. |
boolean | equalsNormalized(String filename1, String filename2) Checks whether two filenames are equal after both have been normalized. |
boolean | equalsNormalizedOnSystem(String filename1, String filename2) Checks whether two filenames are equal after both have been normalized and using the case rules of the system. |
boolean | equalsOnSystem(String filename1, String filename2) Checks whether two filenames are equal using the case rules of the system. |
String | getBaseName(String filename) Gets the base name, minus the full path and extension, from a full filename. |
String | getExtension(String filename) Gets the extension of a filename. |
String | getFullPath(String filename) Gets the full path from a full filename, which is the prefix + path. |
String | getFullPathNoEndSeparator(String filename) Gets the full path from a full filename, which is the prefix + path, and also excluding the final directory separator. |
String | getName(String filename) Gets the name minus the path from a full filename. |
String | getPath(String filename) Gets the path from a full filename, which excludes the prefix. |
String | getPathNoEndSeparator(String filename) Gets the path from a full filename, which excludes the prefix, and also excluding the final directory separator. |
String | getPrefix(String filename) Gets the prefix from a full filename, such as C:/ or ~/ . |
int | getPrefixLength(String filename) Returns the length of the filename prefix, such as C:/ or ~/ . |
int | indexOfExtension(String filename) Returns the index of the last extension separator character, which is a dot. |
int | indexOfLastSeparator(String filename) Returns the index of the last directory separator character. |
boolean | isExtension(String filename, String extension) Checks whether the extension of the filename is that specified. |
boolean | isExtension(String filename, String[] extensions) Checks whether the extension of the filename is one of those specified. |
boolean | isExtension(String filename, Collection Checks whether the extension of the filename is one of those specified. |
String | normalize(String filename) Normalizes a path, removing double and single dot path steps. |
String | normalize(String filename, boolean unixSeparator) Normalizes a path, removing double and single dot path steps. |
String | normalizeNoEndSeparator(String filename) Normalizes a path, removing double and single dot path steps, and removing any final directory separator. |
String | normalizeNoEndSeparator(String filename, boolean unixSeparator) Normalizes a path, removing double and single dot path steps, and removing any final directory separator. |
String | removeExtension(String filename) Removes the extension from a filename. |
String | separatorsToSystem(String path) Converts all separators to the system separator. |
String | separatorsToUnix(String path) Converts all separators to the Unix separator of forward slash. |
String | separatorsToWindows(String path) Converts all separators to the Windows separator of backslash. |
boolean | wildcardMatch(String filename, String wildcardMatcher) Checks a filename to see if it matches the specified wildcard matcher, always testing case-sensitive. |
boolean | wildcardMatch(String filename, String wildcardMatcher, IOCase caseSensitivity) Checks a filename to see if it matches the specified wildcard matcher allowing control over case-sensitivity. |
boolean | wildcardMatchOnSystem(String filename, String wildcardMatcher) Checks a filename to see if it matches the specified wildcard matcher using the case rules of the system. |