Package org.apache.drill.common.util
Class DrillFileUtils
java.lang.Object
org.apache.drill.common.util.DrillFileUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
Creates a temporary directory under the default temporary directory location.static File
getResourceAsFile
(String fileName) static String
getResourceAsString
(String fileName)
-
Field Details
-
SEPARATOR_CHAR
public static final char SEPARATOR_CHAR- See Also:
-
SEPARATOR
- See Also:
-
-
Constructor Details
-
DrillFileUtils
public DrillFileUtils()
-
-
Method Details
-
getResourceAsFile
- Throws:
IOException
-
getResourceAsString
- Throws:
IOException
-
createTempDir
Creates a temporary directory under the default temporary directory location. This is a safe replacement for GuavaFiles#createTempDir()
- Returns:
- a temporary directory
- Throws:
IllegalStateException
- if the directory cannot be created
-