org.elasticsearch.util.io.compression
Class ZipCompressor
java.lang.Object
org.elasticsearch.util.io.compression.ZipCompressor
- All Implemented Interfaces:
- Compressor
public class ZipCompressor
- extends java.lang.Object
- implements Compressor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipCompressor
public ZipCompressor()
ZipCompressor
public ZipCompressor(int compressionLevel)
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