org.zeroturnaround.zip.transform
Class ByteArrayZipEntryTransformer

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

public abstract class ByteArrayZipEntryTransformer
extends Object
implements ZipEntryTransformer


Constructor Summary
ByteArrayZipEntryTransformer()
           
 
Method Summary
protected  boolean preserveTimestamps()
          Override to return true if needed.
 void transform(InputStream in, ZipEntry zipEntry, ZipOutputStream out)
          Copies and transforms the given entry into the ZIP output stream.
protected abstract  byte[] transform(ZipEntry zipEntry, byte[] input)
          Transforms the given byte array into a new one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayZipEntryTransformer

public ByteArrayZipEntryTransformer()
Method Detail

transform

protected abstract byte[] transform(ZipEntry zipEntry,
                                    byte[] input)
                             throws IOException
Transforms the given byte array into a new one.

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

preserveTimestamps

protected boolean preserveTimestamps()
Override to return true if needed.



Copyright © 2013 ZeroTurnaround. All Rights Reserved.