Package org.zeroturnaround.zip.transform
Class StreamZipEntryTransformer
- java.lang.Object
-
- org.zeroturnaround.zip.transform.StreamZipEntryTransformer
-
- All Implemented Interfaces:
ZipEntryTransformer
public abstract class StreamZipEntryTransformer extends java.lang.Object implements ZipEntryTransformer
-
-
Constructor Summary
Constructors Constructor Description StreamZipEntryTransformer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidtransform(java.io.InputStream in, java.util.zip.ZipEntry zipEntry, java.util.zip.ZipOutputStream out)Transforms the input stream entry, writes that to output stream, closes entry in the output stream.protected abstract voidtransform(java.util.zip.ZipEntry zipEntry, java.io.InputStream in, java.io.OutputStream out)Copies and transforms the given input stream into the output stream.
-
-
-
Method Detail
-
transform
protected abstract void transform(java.util.zip.ZipEntry zipEntry, java.io.InputStream in, java.io.OutputStream out) throws java.io.IOExceptionCopies and transforms the given input stream into the output stream.- Parameters:
zipEntry- zip entry metadatain- zip entry contentsout- output stream to write the transformed entry- Throws:
java.io.IOException- if writing transformed entry fails
-
transform
public void transform(java.io.InputStream in, java.util.zip.ZipEntry zipEntry, java.util.zip.ZipOutputStream out) throws java.io.IOExceptionTransforms the input stream entry, writes that to output stream, closes entry in the output stream.- Specified by:
transformin interfaceZipEntryTransformer- Parameters:
in- input stream of the entry contentszipEntry- zip entry metadataout- output stream to write transformed entry (if necessary)- Throws:
java.io.IOException- if anything goes wrong
-
-