java.lang.Object | |
↳ | org.apache.lucene.document.CompressionTools |
Simple utility class providing static methods to compress and decompress binary data for stored fields. This class uses java.util.zip.Deflater and Inflater classes to compress and decompress.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compresses the specified byte range, with default BEST_COMPRESSION level
| |||||||||||
Compresses all bytes in the array, with default BEST_COMPRESSION level
| |||||||||||
Compresses the specified byte range using the
specified compressionLevel (constants are defined in
java.util.zip.Deflater).
| |||||||||||
Compresses the String value using the specified
compressionLevel (constants are defined in
java.util.zip.Deflater).
| |||||||||||
Compresses the String value, with default BEST_COMPRESSION level
| |||||||||||
Decompress the byte array previously returned by
compress
| |||||||||||
Decompress the byte array previously returned by
compressString back into a String
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Compresses the specified byte range, with default BEST_COMPRESSION level
Compresses all bytes in the array, with default BEST_COMPRESSION level
Compresses the specified byte range using the specified compressionLevel (constants are defined in java.util.zip.Deflater).
Compresses the String value using the specified compressionLevel (constants are defined in java.util.zip.Deflater).
Compresses the String value, with default BEST_COMPRESSION level
Decompress the byte array previously returned by compress
DataFormatException |
---|
Decompress the byte array previously returned by compressString back into a String
DataFormatException |
---|