Package io.undertow.util
Class FileUtils
- java.lang.Object
-
- io.undertow.util.FileUtils
-
public class FileUtils extends Object
- Author:
- Stuart Douglas
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddeleteRecursive(Path directory)static StringreadFile(InputStream file)static StringreadFile(InputStream file, String charset)static StringreadFile(InputStream file, Charset charSet)static StringreadFile(Class<?> testClass, String fileName)static StringreadFile(URL url)
-
-
-
Method Detail
-
readFile
public static String readFile(InputStream file, String charset)
-
readFile
public static String readFile(InputStream file)
-
readFile
public static String readFile(InputStream file, Charset charSet)
-
deleteRecursive
public static void deleteRecursive(Path directory) throws IOException
- Throws:
IOException
-
-