public class FileHelper extends Object
File utility functions.| Constructor and Description |
|---|
FileHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getExtension(File file) |
static String |
getName(File file) |
static File |
searchSiblingWithDifferentExtension(File file,
String[] availableExtensions) |
public static String getName(File file)
file - the file we want its name, may be nullnullpublic static String getExtension(File file)
file - the file we want its extension, may be nullnullpublic static File searchSiblingWithDifferentExtension(File file, String[] availableExtensions)
file - the file for which we are looking for a specific sibling
file, may be nullavailableExtensions - an array of possible extensions, may
be nullCopyright © 2021. All rights reserved.