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 void
transform(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 void
transform(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.IOException
Copies 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.IOException
Transforms the input stream entry, writes that to output stream, closes entry in the output stream.- Specified by:
transform
in 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
-
-