public abstract class FileZipEntryTransformer extends Object implements ZipEntryTransformer
| Constructor and Description |
|---|
FileZipEntryTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
transform(InputStream in,
ZipEntry zipEntry,
ZipOutputStream out)
Copies the input stream to the file, then transforms the file.
|
protected abstract void |
transform(ZipEntry zipEntry,
File in,
File out)
Copies and transforms the given file into the output file.
|
protected abstract void transform(ZipEntry zipEntry, File in, File out) throws IOException
zipEntry - zip entry metadatain - zip entry contentsout - file to write transformed contentsIOException - if file is not found or writing to it failspublic void transform(InputStream in, ZipEntry zipEntry, ZipOutputStream out) throws IOException
transform in interface ZipEntryTransformerin - input stream of the entry contentszipEntry - zip entry metadataout - ignored, because we're working on filesIOException - if anything goes wrongCopyright © 2017 ZeroTurnaround. All rights reserved.