public abstract class StringZipEntryTransformer extends Object implements ZipEntryTransformer
Constructor and Description |
---|
StringZipEntryTransformer() |
StringZipEntryTransformer(String encoding) |
Modifier and Type | Method and Description |
---|---|
void |
transform(InputStream in,
ZipEntry zipEntry,
ZipOutputStream out)
Transforms the zip entry given as an input stream and ZipEntry metadata.
|
protected abstract String |
transform(ZipEntry zipEntry,
String input)
Transforms the given String into a new one.
|
public StringZipEntryTransformer()
public StringZipEntryTransformer(String encoding)
protected abstract String transform(ZipEntry zipEntry, String input) throws IOException
zipEntry
- zip entry metadatainput
- zip entry contentsIOException
- if transformation cannot be completed succesfullypublic void transform(InputStream in, ZipEntry zipEntry, ZipOutputStream out) throws IOException
ZipEntryTransformer
transform
in interface ZipEntryTransformer
in
- 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.