Class 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.
Inheritance
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public class CompressionTools : object
Methods
Name | Description |
---|---|
Compress(Byte[]) | Compresses all bytes in the array, with default BEST_COMPRESSION level |
Compress(Byte[], Int32, Int32) | Compresses the specified byte range, with default BEST_COMPRESSION level |
Compress(Byte[], Int32, Int32, Int32) | Compresses the specified byte range using the specified compressionLevel (constants are defined in java.util.zip.Deflater). |
CompressString(String) | Compresses the String value, with default BEST_COMPRESSION level |
CompressString(String, Int32) | Compresses the String value using the specified compressionLevel (constants are defined in java.util.zip.Deflater). |
Decompress(Byte[]) | Decompress the byte array previously returned by compress |
DecompressString(Byte[]) | Decompress the byte array previously returned by compressString back into a String |