- java.lang.Object
-
- com.appslandia.common.utils.FileUtils
-
-
Constructor Summary
Constructors Constructor Description FileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyRecursively(Path src, Path dest)static voiddeleteRecursively(Path root)static Pathmkdirs(String dir)static StringreadContent(Path src)static StringreadContent(Path path, Charset charset)static voidwriteContent(Path path, String content)static voidwriteContent(Path path, String content, Charset charset)
-
-
-
Method Detail
-
writeContent
public static void writeContent(Path path, String content) throws IOException
- Throws:
IOException
-
writeContent
public static void writeContent(Path path, String content, Charset charset) throws IOException
- Throws:
IOException
-
readContent
public static String readContent(Path src) throws IOException
- Throws:
IOException
-
readContent
public static String readContent(Path path, Charset charset) throws IOException
- Throws:
IOException
-
deleteRecursively
public static void deleteRecursively(Path root) throws IOException
- Throws:
IOException
-
copyRecursively
public static void copyRecursively(Path src, Path dest) throws IOException
- Throws:
IOException
-
-