Package org.zeroturnaround.zip.transform
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 TypeMethodDescriptionvoid
transform
(InputStream in, ZipEntry zipEntry, ZipOutputStream out) Transforms the zip entry given as an input stream and ZipEntry metadata.
-
Method Details
-
transform
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 contentszipEntry
- zip entry metadataout
- output stream to write transformed entry (if necessary)- Throws:
IOException
- if anything goes wrong
-