public abstract class ByteArrayZipEntryTransformer extends Object implements ZipEntryTransformer
Constructor and Description |
---|
ByteArrayZipEntryTransformer() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
preserveTimestamps()
Override to return true if needed.
|
void |
transform(InputStream in,
ZipEntry zipEntry,
ZipOutputStream out)
Transforms the zip entry given as an input stream and ZipEntry metadata.
|
protected abstract byte[] |
transform(ZipEntry zipEntry,
byte[] input)
Transforms the given byte array into a new one.
|
protected abstract byte[] transform(ZipEntry zipEntry, byte[] input) throws IOException
zipEntry
- entry to transforminput
- entry contentsIOException
- if anything goes wrongpublic void transform(InputStream in, ZipEntry zipEntry, ZipOutputStream out) throws IOException
transform
in interface ZipEntryTransformer
zipEntry
- zip entry metadataout
- output stream to write transformed entryin
- input stream of the entry contentsIOException
- if anything goes wrongprotected boolean preserveTimestamps()
Copyright © 2017 ZeroTurnaround. All rights reserved.