org.elasticsearch.util.io.compression
Class GZIPCompressor

java.lang.Object
  extended by org.elasticsearch.util.io.compression.GZIPCompressor
All Implemented Interfaces:
Compressor

public class GZIPCompressor
extends java.lang.Object
implements Compressor


Constructor Summary
GZIPCompressor()
           
 
Method Summary
 byte[] compress(byte[] value)
           
 byte[] compress(byte[] value, int offset, int length)
           
 byte[] compressString(java.lang.String value)
           
 byte[] decompress(byte[] value)
           
 java.lang.String decompressString(byte[] value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GZIPCompressor

public GZIPCompressor()
Method Detail

compress

public byte[] compress(byte[] value,
                       int offset,
                       int length)
                throws java.io.IOException
Throws:
java.io.IOException

compress

public byte[] compress(byte[] value)
                throws java.io.IOException
Specified by:
compress in interface Compressor
Throws:
java.io.IOException

compressString

public byte[] compressString(java.lang.String value)
                      throws java.io.IOException
Specified by:
compressString in interface Compressor
Throws:
java.io.IOException

decompress

public byte[] decompress(byte[] value)
                  throws java.io.IOException
Specified by:
decompress in interface Compressor
Throws:
java.io.IOException

decompressString

public java.lang.String decompressString(byte[] value)
                                  throws java.io.IOException
Specified by:
decompressString in interface Compressor
Throws:
java.io.IOException