Class FileUtils


  • public class FileUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUtils()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String createFullPath​(java.lang.String... dirsAndFilename)  
      void ensureFolderStructureExists​(java.lang.String file)  
      boolean fileNotExists​(java.lang.String filename)  
      boolean isAbsolutePath​(java.lang.String file)  
      java.lang.String readFile​(java.lang.String file, java.lang.String encoding)  
      void writeToFile​(java.lang.String outputFile, java.lang.String content, java.lang.String encoding)  
      • Methods inherited from class java.lang.Object

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

      • FileUtils

        public FileUtils()
    • Method Detail

      • fileNotExists

        public boolean fileNotExists​(java.lang.String filename)
      • ensureFolderStructureExists

        public void ensureFolderStructureExists​(java.lang.String file)
      • readFile

        public java.lang.String readFile​(java.lang.String file,
                                         java.lang.String encoding)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • writeToFile

        public void writeToFile​(java.lang.String outputFile,
                                java.lang.String content,
                                java.lang.String encoding)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • createFullPath

        public java.lang.String createFullPath​(java.lang.String... dirsAndFilename)
      • isAbsolutePath

        public boolean isAbsolutePath​(java.lang.String file)