Package org.zeroturnaround.zip.transform
Interface ZipEntryTransformer
-
- All Known Implementing Classes:
ByteArrayZipEntryTransformer,FileZipEntryTransformer,StreamZipEntryTransformer,StringZipEntryTransformer,ZipEntrySourceZipEntryTransformer
public interface ZipEntryTransformerCall-back for traversing ZIP entries with their contents and producing a new ZIP file as an output.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtransform(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.
-
-
-
Method Detail
-
transform
void transform(java.io.InputStream in, java.util.zip.ZipEntry zipEntry, java.util.zip.ZipOutputStream out) throws java.io.IOExceptionTransforms 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:
java.io.IOException- if anything goes wrong
-
-