Package jodd.io

Class ZipBuilder


  • public class ZipBuilder
    extends java.lang.Object
    ZIP builder class for building both files or in-memory zips.
    • Constructor Detail

      • ZipBuilder

        protected ZipBuilder​(java.io.File zipFile)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • ZipBuilder

        protected ZipBuilder()
    • Method Detail

      • createZipFile

        public static ZipBuilder createZipFile​(java.io.File zipFile)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • createZipFile

        public static ZipBuilder createZipFile​(java.lang.String zipFile)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • createZipInMemory

        public static ZipBuilder createZipInMemory()
      • toZipFile

        public java.io.File toZipFile()
      • toBytes

        public byte[] toBytes()
      • addFolder

        public ZipBuilder addFolder​(java.lang.String folderName)
                             throws java.io.IOException
        Throws:
        java.io.IOException