public abstract class StreamZipEntryTransformer extends Object implements ZipEntryTransformer
| Constructor and Description |
|---|
StreamZipEntryTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
transform(InputStream in,
ZipEntry zipEntry,
ZipOutputStream out)
Transforms the input stream entry, writes that to output stream, closes entry in the output stream.
|
protected abstract void |
transform(ZipEntry zipEntry,
InputStream in,
OutputStream out)
Copies and transforms the given input stream into the output stream.
|
protected abstract void transform(ZipEntry zipEntry, InputStream in, OutputStream out) throws IOException
zipEntry - zip entry metadatain - zip entry contentsout - output stream to write the transformed entryIOException - if writing transformed entry failspublic void transform(InputStream in, ZipEntry zipEntry, ZipOutputStream out) throws IOException
transform in interface ZipEntryTransformerin - input stream of the entry contentszipEntry - zip entry metadataout - output stream to write transformed entry (if necessary)IOException - if anything goes wrongCopyright © 2017 ZeroTurnaround. All rights reserved.