Class Folder


  • public class Folder
    extends java.lang.Object
    Author:
    Charles Souillard
    • Constructor Detail

      • Folder

        public Folder​(java.io.File folder)
               throws java.io.IOException
        Throws:
        java.io.IOException
      • Folder

        public Folder​(Folder folder,
                      java.lang.String subFolder)
               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getFile

        public java.io.File getFile()
      • delete

        public void delete()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getFile

        public java.io.File getFile​(java.lang.String name)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • newFile

        public java.io.File newFile​(java.lang.String name)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • create

        public void create()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • copyTo

        public void copyTo​(Folder destFolder)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • listFilesAsResources

        public java.util.Map<java.lang.String,​byte[]> listFilesAsResources()
                                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • getFileContent

        protected byte[] getFileContent​(java.io.File file)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • exists

        public boolean exists()
      • toURI

        public java.net.URI toURI()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • createIfNotExists

        public Folder createIfNotExists()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • createAsTemporaryFolder

        public void createAsTemporaryFolder()