Class ZipWriter


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

      Constructors 
      Constructor Description
      ZipWriter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFile​(java.io.ByteArrayOutputStream baos)  
      void addFile​(java.io.File image)  
      void addFile​(java.lang.String name, byte[] b)  
      void end()  
      void init​(java.io.File zipf)  
      • Methods inherited from class java.lang.Object

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

      • ZipWriter

        public ZipWriter()
    • Method Detail

      • addFile

        public void addFile​(java.io.ByteArrayOutputStream baos)
      • addFile

        public void addFile​(java.io.File image)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        public void addFile​(java.lang.String name,
                            byte[] b)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • end

        public void end()
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • init

        public void init​(java.io.File zipf)
                  throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException