org.zeroturnaround.zip.transform
Class StringZipEntryTransformer

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

public abstract class StringZipEntryTransformer
extends Object
implements ZipEntryTransformer


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

Constructor Detail

StringZipEntryTransformer

public StringZipEntryTransformer()

StringZipEntryTransformer

public StringZipEntryTransformer(String encoding)
Method Detail

transform

protected abstract String transform(ZipEntry zipEntry,
                                    String input)
                             throws IOException
Transforms the given String 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


Copyright © 2013 ZeroTurnaround. All Rights Reserved.