Class ZipEntrySourceZipEntryTransformer
java.lang.Object
org.zeroturnaround.zip.transform.ZipEntrySourceZipEntryTransformer
- All Implemented Interfaces:
ZipEntryTransformer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidaddEntry(ZipEntrySource entry, ZipOutputStream out) Adds a given ZIP entry to a ZIP file.voidtransform(InputStream in, ZipEntry zipEntry, ZipOutputStream out) Transforms the zip entry given as an input stream and ZipEntry metadata.
-
Field Details
-
source
-
-
Constructor Details
-
ZipEntrySourceZipEntryTransformer
-
-
Method Details
-
transform
Description copied from interface:ZipEntryTransformerTransforms the zip entry given as an input stream and ZipEntry metadata. The result is written to a ZipOutputStream- Specified by:
transformin interfaceZipEntryTransformer- 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
-
addEntry
Adds a given ZIP entry to a ZIP file.- Parameters:
entry- new ZIP entry.out- target ZIP stream.- Throws:
IOException
-