Package com.atlassian.bamboo.specs.util
Class FileUtils
java.lang.Object
com.atlassian.bamboo.specs.util.FileUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringreadFileContent(@NotNull Path path, String fileIsNullErrorMessage, String fileReadErrorMessage) Read file content.static StringreadFileToString(Path path)
-
Method Details
-
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
- Throws:
IOException
-