public class FilenameUtils extends Object
Constructor and Description |
---|
FilenameUtils() |
Modifier and Type | Method and Description |
---|---|
static @Opt String |
getExtension(File f) |
static @Opt String |
getExtension(String fn) |
static String |
multiply(String fnam,
String insert)
Insert a string into a file name, directly before the last "dot" separator.
|
static String |
replaceExtension(File f,
@Opt String e)
Replace the extension by a different one, or remove it completely.
|
static String |
replaceExtension(String fn,
@Opt String e) |
static String |
stripExtension(File f) |
static String |
stripExtension(String fn) |
public static String multiply(String fnam, String insert)
public static String replaceExtension(File f, @Opt @Opt String e) throws IOException
f
- must have a dot "." in its last namee
- (maybe null) replaces everything after the last dot.IOException
see also the complete user documentation .