org.jzy3d.io
Class SimpleFile

java.lang.Object
  extended by org.jzy3d.io.SimpleFile

public class SimpleFile
extends Object


Constructor Summary
SimpleFile()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFile

public SimpleFile()
Method Detail

write

public static void write(String content,
                         String file)
                  throws Exception
Throws:
Exception

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)
                           throws Exception
Throws:
Exception

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


Copyright © 2013. All rights reserved.