org.openadaptor.doconverter
Class ZipCompressor

java.lang.Object
  extended by org.openadaptor.doconverter.ZipCompressor
All Implemented Interfaces:
Compressor

public class ZipCompressor
extends java.lang.Object
implements Compressor

Zip-based compressor.

Version:
1.0
Author:
Tim Bissell
See Also:
Compressor

Field Summary
(package private)  Compress compressor
           
 
Constructor Summary
ZipCompressor()
           
 
Method Summary
 byte[] compress(java.lang.String text)
          Compress the string text.
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compressor

Compress compressor
Constructor Detail

ZipCompressor

public ZipCompressor()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Compressor

compress

public byte[] compress(java.lang.String text)
                throws CompressorException
Compress the string text. This

Specified by:
compress in interface Compressor
Parameters:
text - String to be compressed.
Returns:
Byte Array containing compressed string.
Throws:
CompressorException