Class CmsLogDownloadDialog.ZipGenerator

    • Constructor Summary

      Constructors 
      Constructor Description
      ZipGenerator​(java.io.OutputStream output)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addToZip​(java.io.File directory, java.io.File file)
      Adds a file to a zip-stream.
      void close()
      Closes the zip stream.
      • Methods inherited from class java.lang.Object

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

      • ZipGenerator

        public ZipGenerator​(java.io.OutputStream output)
        Creates a new instance.

        Parameters:
        output - the output stream to write to
    • Method Detail

      • addToZip

        public void addToZip​(java.io.File directory,
                             java.io.File file)
                      throws java.io.IOException
        Adds a file to a zip-stream.

        Parameters:
        directory - to be zipped
        file - to be added zo zip
        Throws:
        java.io.IOException - exception
      • close

        public void close()
                   throws java.io.IOException
        Closes the zip stream.

        Throws:
        java.io.IOException - if something goes wrong