Package org.jzy3d.io
Class SimpleFile
- java.lang.Object
-
- org.jzy3d.io.SimpleFile
-
public class SimpleFile extends Object
-
-
Constructor Summary
Constructors Constructor Description SimpleFile()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createParentFoldersIfNotExist(String file)
static boolean
isYounger(String file1, String file2)
Return true if file1 is younger than file2, meaning it was last modified after file2.static List<String>
read(String filename)
static String
readAsString(String filename)
static String
readAsString(String filename, String newLineString)
static List<String>
readFile(File file)
static void
write(String content, String file)
-
-
-
Method Detail
-
createParentFoldersIfNotExist
public static void createParentFoldersIfNotExist(String file)
-
readFile
public static List<String> readFile(File file) throws IOException
- Throws:
IOException
-
read
public static List<String> read(String filename) throws IOException
- Throws:
IOException
-
readAsString
public static String readAsString(String filename, String newLineString) throws IOException
- Throws:
IOException
-
isYounger
public static boolean isYounger(String file1, String file2) throws IOException
Return 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:
IOException
-
-