Package com.atlassian.bamboo.specs.util
Class FileUtils
- java.lang.Object
-
- com.atlassian.bamboo.specs.util.FileUtils
-
public final class FileUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringreadFileContent(@NotNull Path path, String fileIsNullErrorMessage, String fileReadErrorMessage)Read file content.static StringreadFileToString(Path path)
-
-
-
Method Detail
-
readFileContent
public static String readFileContent(@NotNull @NotNull Path path, String fileIsNullErrorMessage, String fileReadErrorMessage)
Read file content.- Parameters:
path- to filefileIsNullErrorMessage- error message thrown when file is nullfileReadErrorMessage- error message thrown when can't read file- Returns:
- file body
-
readFileToString
public static String readFileToString(Path path) throws IOException
- Throws:
IOException
-
-