Interface ZipEntryTransformer

All Known Implementing Classes:
ByteArrayZipEntryTransformer, FileZipEntryTransformer, StreamZipEntryTransformer, StringZipEntryTransformer, ZipEntrySourceZipEntryTransformer

public interface ZipEntryTransformer
Call-back for traversing ZIP entries with their contents and producing a new ZIP file as an output.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Transforms the zip entry given as an input stream and ZipEntry metadata.
  • Method Details

    • transform

      void transform(InputStream in, ZipEntry zipEntry, ZipOutputStream out) throws IOException
      Transforms the zip entry given as an input stream and ZipEntry metadata. The result is written to a ZipOutputStream
      Parameters:
      in - input stream of the entry contents
      zipEntry - zip entry metadata
      out - output stream to write transformed entry (if necessary)
      Throws:
      IOException - if anything goes wrong