Package io.undertow.util
Class FileUtils
- java.lang.Object
-
- io.undertow.util.FileUtils
-
public class FileUtils extends java.lang.Object
- Author:
- Stuart Douglas
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
deleteRecursive(java.nio.file.Path directory)
static java.lang.String
readFile(java.io.InputStream file)
Reads thefile
and converting it toString
using UTF-8 encoding.static java.lang.String
readFile(java.lang.Class<?> testClass, java.lang.String fileName)
static java.lang.String
readFile(java.net.URL url)
-
-
-
Method Detail
-
readFile
public static java.lang.String readFile(java.lang.Class<?> testClass, java.lang.String fileName)
-
readFile
public static java.lang.String readFile(java.net.URL url)
-
readFile
public static java.lang.String readFile(java.io.InputStream file)
Reads thefile
and converting it toString
using UTF-8 encoding.
-
deleteRecursive
public static void deleteRecursive(java.nio.file.Path directory) throws java.io.IOException
- Throws:
java.io.IOException
-
-