Class ZipDirectory


  • public class ZipDirectory
    extends java.lang.Object
    Created by ctha on 23-02-2016.
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipDirectory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addDir​(java.io.File root, java.io.File dirObj, java.util.zip.ZipOutputStream out)  
      static byte[] zipDirectory​(java.io.File dir)  
      static java.io.File zipDirectoryLarge​(java.io.File dir, java.io.File tempFileBuffer)  
      • Methods inherited from class java.lang.Object

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

      • ZipDirectory

        public ZipDirectory()
    • Method Detail

      • zipDirectory

        public static byte[] zipDirectory​(java.io.File dir)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • zipDirectoryLarge

        public static java.io.File zipDirectoryLarge​(java.io.File dir,
                                                     java.io.File tempFileBuffer)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • addDir

        public static void addDir​(java.io.File root,
                                  java.io.File dirObj,
                                  java.util.zip.ZipOutputStream out)
                           throws java.io.IOException
        Throws:
        java.io.IOException