org.zeroturnaround.zip.transform
Class StreamZipEntryTransformer

java.lang.Object
  extended by org.zeroturnaround.zip.transform.StreamZipEntryTransformer
All Implemented Interfaces:
ZipEntryTransformer

public abstract class StreamZipEntryTransformer
extends Object
implements ZipEntryTransformer


Constructor Summary
StreamZipEntryTransformer()
           
 
Method Summary
 void transform(InputStream in, ZipEntry zipEntry, ZipOutputStream out)
          Copies and transforms the given entry into the ZIP output stream.
protected abstract  void transform(ZipEntry zipEntry, InputStream in, OutputStream out)
          Copies and transforms the given input stream into the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamZipEntryTransformer

public StreamZipEntryTransformer()
Method Detail

transform

protected abstract void transform(ZipEntry zipEntry,
                                  InputStream in,
                                  OutputStream out)
                           throws IOException
Copies and transforms the given input stream into the output stream.

Throws:
IOException

transform

public void transform(InputStream in,
                      ZipEntry zipEntry,
                      ZipOutputStream out)
               throws IOException
Description copied from interface: ZipEntryTransformer
Copies and transforms the given entry into the ZIP output stream.

Specified by:
transform in interface ZipEntryTransformer
Throws:
IOException


Copyright © 2013 ZeroTurnaround. All Rights Reserved.