org.zeroturnaround.zip.transform
Class FileZipEntryTransformer

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

public abstract class FileZipEntryTransformer
extends Object
implements ZipEntryTransformer


Constructor Summary
FileZipEntryTransformer()
           
 
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, File in, File out)
          Copies and transforms the given file into the output file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileZipEntryTransformer

public FileZipEntryTransformer()
Method Detail

transform

protected abstract void transform(ZipEntry zipEntry,
                                  File in,
                                  File out)
                           throws IOException
Copies and transforms the given file into the output file.

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.