Package org.jzy3d.io
Class SimpleFile
- java.lang.Object
-
- org.jzy3d.io.SimpleFile
-
public class SimpleFile extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createParentFoldersIfNotExist(File file)
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
-
write
public static void write(String content, String file) throws IOException
- Throws:
IOException
-
createParentFoldersIfNotExist
public static void createParentFoldersIfNotExist(String file)
-
createParentFoldersIfNotExist
public static void createParentFoldersIfNotExist(File 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) throws IOException
- Throws:
IOException
-
readAsString
public static String readAsString(String filename, String newLineString) throws IOException
- Throws:
IOException
-
-