public final class FileUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
doesRelativeFileExists(String fileName) |
static String |
findRelativeFile(String fileName) |
static String |
findRelativeFile(String fileName,
Class<?> clazz)
Find the given file relative to the process or the jar.
|
static String |
generateRelativeFile(String fileName)
Generate relative file name to the specified file from the context-common jar.
|
static String |
generateRelativeFile(String fileName,
Class<?> clazz)
Generate relative file name to the specified file from the context-common jar.
|
static String[] |
getLines(File file)
Get lines as array from file.
|
public static String[] getLines(File file) throws IOException
IOExceptionpublic static String findRelativeFile(String fileName) throws FileNotFoundException
FileNotFoundExceptionpublic static boolean doesRelativeFileExists(String fileName)
public static String generateRelativeFile(String fileName)
fileName - to generate a relative file name frompublic static String generateRelativeFile(String fileName, Class<?> clazz)
fileName - to generate a relative file name fromclazz - the class contained in the jar to get the relative file namepublic static String findRelativeFile(String fileName, Class<?> clazz) throws FileNotFoundException
fileName - file nameFileNotFoundExceptionCopyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries