Class FileUtils

java.lang.Object
com.atlassian.bamboo.specs.util.FileUtils

public final class FileUtils extends Object
  • Method Details

    • readFileContent

      public static String readFileContent(@NotNull @NotNull Path path, String fileIsNullErrorMessage, String fileReadErrorMessage)
      Read file content.
      Parameters:
      path - to file
      fileIsNullErrorMessage - error message thrown when file is null
      fileReadErrorMessage - error message thrown when can't read file
      Returns:
      file body
    • readFileToString

      public static String readFileToString(Path path) throws IOException
      Throws:
      IOException