public final class FileUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
readFileContent(Path path,
String fileIsNullErrorMessage,
String fileReadErrorMessage)
Read file content.
|
static String |
readFileToString(Path path) |
public static String readFileContent(@NotNull Path path, String fileIsNullErrorMessage, String fileReadErrorMessage)
path - to filefileIsNullErrorMessage - error message thrown when file is nullfileReadErrorMessage - error message thrown when can't read filepublic static String readFileToString(Path path) throws IOException
IOExceptionCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.