Class StreamZipEntryTransformer

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void transform​(java.io.InputStream in, java.util.zip.ZipEntry zipEntry, java.util.zip.ZipOutputStream out)
      Transforms the input stream entry, writes that to output stream, closes entry in the output stream.
      protected abstract void transform​(java.util.zip.ZipEntry zipEntry, java.io.InputStream in, java.io.OutputStream out)
      Copies and transforms the given input stream into the output stream.
      • Methods inherited from class java.lang.Object

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

      • StreamZipEntryTransformer

        public StreamZipEntryTransformer()
    • Method Detail

      • transform

        protected abstract void transform​(java.util.zip.ZipEntry zipEntry,
                                          java.io.InputStream in,
                                          java.io.OutputStream out)
                                   throws java.io.IOException
        Copies and transforms the given input stream into the output stream.
        Parameters:
        zipEntry - zip entry metadata
        in - zip entry contents
        out - output stream to write the transformed entry
        Throws:
        java.io.IOException - if writing transformed entry fails
      • transform

        public void transform​(java.io.InputStream in,
                              java.util.zip.ZipEntry zipEntry,
                              java.util.zip.ZipOutputStream out)
                       throws java.io.IOException
        Transforms the input stream entry, writes that to output stream, closes entry in the output stream.
        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