Class ZipEntrySourceZipEntryTransformer

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void addEntry​(ZipEntrySource entry, java.util.zip.ZipOutputStream out)
      Adds a given ZIP entry to a ZIP file.
      void transform​(java.io.InputStream in, java.util.zip.ZipEntry zipEntry, java.util.zip.ZipOutputStream out)
      Transforms the zip entry given as an input stream and ZipEntry metadata.
      • Methods inherited from class java.lang.Object

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

      • ZipEntrySourceZipEntryTransformer

        public ZipEntrySourceZipEntryTransformer​(ZipEntrySource source)
    • Method Detail

      • transform

        public void transform​(java.io.InputStream in,
                              java.util.zip.ZipEntry zipEntry,
                              java.util.zip.ZipOutputStream out)
                       throws java.io.IOException
        Description copied from interface: ZipEntryTransformer
        Transforms the zip entry given as an input stream and ZipEntry metadata. The result is written to a ZipOutputStream
        Specified by:
        transform in interface ZipEntryTransformer
        Parameters:
        in - input stream of the entry contents
        zipEntry - zip entry metadata
        out - output stream to write transformed entry (if necessary)
        Throws:
        java.io.IOException - if anything goes wrong
      • addEntry

        static void addEntry​(ZipEntrySource entry,
                             java.util.zip.ZipOutputStream out)
                      throws java.io.IOException
        Adds a given ZIP entry to a ZIP file.
        Parameters:
        entry - new ZIP entry.
        out - target ZIP stream.
        Throws:
        java.io.IOException