Class StringZipEntryTransformer
java.lang.Object
org.zeroturnaround.zip.transform.StringZipEntryTransformer
- All Implemented Interfaces:
ZipEntryTransformer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtransform(InputStream in, ZipEntry zipEntry, ZipOutputStream out) Transforms the zip entry given as an input stream and ZipEntry metadata.protected abstract StringTransforms the given String into a new one.
-
Field Details
-
encoding
The encoding to use, null means platform default.
-
-
Constructor Details
-
StringZipEntryTransformer
public StringZipEntryTransformer() -
StringZipEntryTransformer
-
-
Method Details
-
transform
Transforms the given String into a new one.- Parameters:
zipEntry- zip entry metadatainput- zip entry contents- Returns:
- String - transformed entry contents
- Throws:
IOException- if transformation cannot be completed succesfully
-
transform
Description copied from interface:ZipEntryTransformerTransforms the zip entry given as an input stream and ZipEntry metadata. The result is written to a ZipOutputStream- Specified by:
transformin 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
-