org.jzy3d.io
Class SimpleFile
- java.lang.Object
-
- org.jzy3d.io.SimpleFile
-
public class SimpleFile extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description SimpleFile()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidcreateParentFoldersIfNotExist(java.lang.String file)static booleanisYounger(java.lang.String file1, java.lang.String file2)Return true if file1 is younger than file2, meaning it was last modified after file2.static java.util.List<java.lang.String>read(java.lang.String filename)static java.lang.StringreadAsString(java.lang.String filename)static java.lang.StringreadAsString(java.lang.String filename, java.lang.String newLineString)static java.util.List<java.lang.String>readFile(java.io.File file)static voidwrite(java.lang.String content, java.lang.String file)
-
-
-
Method Detail
-
write
public static void write(java.lang.String content, java.lang.String file) throws java.lang.Exception- Throws:
java.lang.Exception
-
createParentFoldersIfNotExist
public static void createParentFoldersIfNotExist(java.lang.String file)
-
readFile
public static java.util.List<java.lang.String> readFile(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
read
public static java.util.List<java.lang.String> read(java.lang.String filename) throws java.io.IOException- Throws:
java.io.IOException
-
readAsString
public static java.lang.String readAsString(java.lang.String filename) throws java.lang.Exception- Throws:
java.lang.Exception
-
readAsString
public static java.lang.String readAsString(java.lang.String filename, java.lang.String newLineString) throws java.io.IOException- Throws:
java.io.IOException
-
isYounger
public static boolean isYounger(java.lang.String file1, java.lang.String file2) throws java.io.IOExceptionReturn true if file1 is younger than file2, meaning it was last modified after file2. Always return false if file2 does not exist. Always return true if file1 does not exist.- Throws:
java.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG