public class FileNameUtils
extends java.lang.Object
| Constructor and Description |
|---|
FileNameUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getBaseName(java.nio.file.Path path)
Gets the base name (i.e.
|
static java.lang.String |
getBaseName(java.lang.String fileName)
Deprecated.
No longer used, no replacement.
|
static java.lang.String |
getExtension(java.nio.file.Path path)
Gets the extension (i.e.
|
static java.lang.String |
getExtension(java.lang.String fileName)
Deprecated.
|
public static java.lang.String getBaseName(java.nio.file.Path path)
Will return the file name itself if it doesn't contain any dots. All leading directories of the file name parameter are skipped.
path - the path of the file to obtain the base name of.@Deprecated public static java.lang.String getBaseName(java.lang.String fileName)
Will return the file name itself if it doesn't contain any dots. All leading directories of the file name parameter are skipped.
fileName - the name of the file to obtain the base name of.public static java.lang.String getExtension(java.nio.file.Path path)
Will return an empty string if the file name doesn't contain any dots. Only the last segment of a the file name is consulted - i.e. all leading
directories of the file name parameter are skipped.
path - the path of the file to obtain the extension of.@Deprecated public static java.lang.String getExtension(java.lang.String fileName)
FilenameUtils.getExtension(String).
Will return an empty string if the file name doesn't contain any dots. Only the last segment of a the file name is consulted - i.e. all leading
directories of the fileName parameter are skipped.
fileName - the name of the file to obtain the extension of.Copyright © 2010 - 2024 Adobe. All Rights Reserved