Class DrillFileUtils

java.lang.Object
org.apache.drill.common.util.DrillFileUtils

public class DrillFileUtils extends Object
  • Field Details

  • Constructor Details

    • DrillFileUtils

      public DrillFileUtils()
  • Method Details

    • getResourceAsFile

      public static File getResourceAsFile(String fileName) throws IOException
      Throws:
      IOException
    • getResourceAsString

      public static String getResourceAsString(String fileName) throws IOException
      Throws:
      IOException
    • createTempDir

      public static File createTempDir()
      Creates a temporary directory under the default temporary directory location. This is a safe replacement for Guava Files#createTempDir()
      Returns:
      a temporary directory
      Throws:
      IllegalStateException - if the directory cannot be created