
public final class FileUtils extends Object
| Modifier | Constructor and Description |
|---|---|
private |
FileUtils()
Constructor; hidden.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getFileExtension(String filename)
Get the extension of a file, given the name of the file.
|
static String |
renameFileExtension(String source,
String newExtension)
Change the extension of a file name, e.g.
|
private static final String DOT
public static String renameFileExtension(String source, String newExtension)
source - the name of the file whose extension we wish to changenewExtension - the new extension.Copyright © 2015 University of Glasgow. All rights reserved.