Documentation of 'org.jzy3d.io.SimpleFile' Java class
SimpleFile
org.jzy3d.io

Class 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 void createParentFoldersIfNotExist(java.lang.String file) 
      static boolean isYounger(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.String readAsString(java.lang.String filename) 
      static java.lang.String readAsString(java.lang.String filename, java.lang.String newLineString) 
      static java.util.List<java.lang.String> readFile(java.io.File file) 
      static void write(java.lang.String content, java.lang.String file) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleFile

        public SimpleFile()
    • 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.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:
        java.io.IOException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.