Package org.luwrain.util
Class FileUtils
java.lang.Object
org.luwrain.util.FileUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileifNotAbsolute(File baseDir, String path) static StringreadTextFile(File file) static StringreadTextFile(File file, String charset) static String[]readTextFileMultipleStrings(File file, String charset, String lineSeparator) static StringwriteRandomFile(Path path, int len) static voidwriteTextFile(File file, String text, String charset)
-
Field Details
-
UTF_8
- See Also:
-
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
writeRandomFile
- Throws:
IOException
-
readTextFile
- Throws:
IOException
-
readTextFile
- Throws:
IOException
-
writeTextFile
- Throws:
IOException
-
readTextFileMultipleStrings
public static String[] readTextFileMultipleStrings(File file, String charset, String lineSeparator) throws IOException - Throws:
IOException
-
ifNotAbsolute
-