Package org.zeroturnaround.zip.transform
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 void
addEntry
(ZipEntrySource entry, ZipOutputStream out) Adds a given ZIP entry to a ZIP file.void
transform
(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:ZipEntryTransformer
Transforms the zip entry given as an input stream and ZipEntry metadata. The result is written to a ZipOutputStream- Specified by:
transform
in 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
-