Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Static Public Member Functions | List of all members
Lucene.Net.Documents.CompressionTools Class Reference

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. More...

Static Public Member Functions

static byte[] Compress (byte[] value_Renamed, int offset, int length, int compressionLevel)
 Compresses the specified byte range using the specified compressionLevel (constants are defined in java.util.zip.Deflater).
 
static byte[] Compress (byte[] value_Renamed, int offset, int length)
 Compresses the specified byte range, with default BEST_COMPRESSION level
 
static byte[] Compress (byte[] value_Renamed)
 Compresses all bytes in the array, with default BEST_COMPRESSION level
 
static byte[] CompressString (System.String value_Renamed)
 Compresses the String value, with default BEST_COMPRESSION level
 
static byte[] CompressString (System.String value_Renamed, int compressionLevel)
 Compresses the String value using the specified compressionLevel (constants are defined in java.util.zip.Deflater).
 
static byte[] Decompress (byte[] value_Renamed)
 Decompress the byte array previously returned by compress
 
static System.String DecompressString (byte[] value_Renamed)
 Decompress the byte array previously returned by compressString back into a String
 

Detailed Description

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.

Definition at line 37 of file CompressionTools.cs.

Member Function Documentation

static byte [] Lucene.Net.Documents.CompressionTools.Compress ( byte[]  value_Renamed,
int  offset,
int  length,
int  compressionLevel 
)
static

Compresses the specified byte range using the specified compressionLevel (constants are defined in java.util.zip.Deflater).

Definition at line 49 of file CompressionTools.cs.

static byte [] Lucene.Net.Documents.CompressionTools.Compress ( byte[]  value_Renamed,
int  offset,
int  length 
)
static

Compresses the specified byte range, with default BEST_COMPRESSION level

Definition at line 81 of file CompressionTools.cs.

static byte [] Lucene.Net.Documents.CompressionTools.Compress ( byte[]  value_Renamed)
static

Compresses all bytes in the array, with default BEST_COMPRESSION level

Definition at line 87 of file CompressionTools.cs.

static byte [] Lucene.Net.Documents.CompressionTools.CompressString ( System.String  value_Renamed)
static

Compresses the String value, with default BEST_COMPRESSION level

Definition at line 93 of file CompressionTools.cs.

static byte [] Lucene.Net.Documents.CompressionTools.CompressString ( System.String  value_Renamed,
int  compressionLevel 
)
static

Compresses the String value using the specified compressionLevel (constants are defined in java.util.zip.Deflater).

Definition at line 102 of file CompressionTools.cs.

static byte [] Lucene.Net.Documents.CompressionTools.Decompress ( byte[]  value_Renamed)
static

Decompress the byte array previously returned by compress

Definition at line 112 of file CompressionTools.cs.

static System.String Lucene.Net.Documents.CompressionTools.DecompressString ( byte[]  value_Renamed)
static

Decompress the byte array previously returned by compressString back into a String

Definition at line 141 of file CompressionTools.cs.


The documentation for this class was generated from the following file: