Method | Description | |
---|---|---|
Compress ( byte value ) : byte[] |
Compresses all bytes in the array, with default BEST_COMPRESSION level
|
|
Compress ( byte value, int offset, int length ) : byte[] |
Compresses the specified byte range, with default BEST_COMPRESSION level
|
|
Compress ( byte value, int offset, int length, int compressionLevel ) : byte[] |
Compresses the specified byte range using the specified compressionLevel (constants are defined in java.util.zip.Deflater).
|
|
CompressString ( string value ) : byte[] |
Compresses the String value, with default BEST_COMPRESSION level
|
|
CompressString ( string value, int compressionLevel ) : byte[] |
Compresses the String value using the specified compressionLevel (constants are defined in java.util.zip.Deflater).
|
|
Decompress ( BytesRef bytes ) : byte[] |
Decompress the byte array previously returned by compress (referenced by the provided BytesRef)
|
|
Decompress ( byte value ) : byte[] |
Decompress the byte array previously returned by compress
|
|
Decompress ( byte value, int offset, int length ) : byte[] |
Decompress the byte array previously returned by compress
|
|
DecompressString ( BytesRef bytes ) : string |
Decompress the byte array (referenced by the provided BytesRef) previously returned by compressString back into a String
|
|
DecompressString ( byte value ) : string |
Decompress the byte array previously returned by compressString back into a String
|
|
DecompressString ( byte value, int offset, int length ) : string |
Decompress the byte array previously returned by compressString back into a String
|
Method | Description | |
---|---|---|
CompressionTools ( ) : System |
public static Compress ( byte value ) : byte[] | ||
value | byte | |
return | byte[] |
public static Compress ( byte value, int offset, int length ) : byte[] | ||
value | byte | |
offset | int | |
length | int | |
return | byte[] |
public static Compress ( byte value, int offset, int length, int compressionLevel ) : byte[] | ||
value | byte | |
offset | int | |
length | int | |
compressionLevel | int | |
return | byte[] |
public static CompressString ( string value ) : byte[] | ||
value | string | |
return | byte[] |
public static CompressString ( string value, int compressionLevel ) : byte[] | ||
value | string | |
compressionLevel | int | |
return | byte[] |
public static Decompress ( BytesRef bytes ) : byte[] | ||
bytes | BytesRef | |
return | byte[] |
public static Decompress ( byte value ) : byte[] | ||
value | byte | |
return | byte[] |
public static Decompress ( byte value, int offset, int length ) : byte[] | ||
value | byte | |
offset | int | |
length | int | |
return | byte[] |
public static DecompressString ( BytesRef bytes ) : string | ||
bytes | BytesRef | |
return | string |
public static DecompressString ( byte value ) : string | ||
value | byte | |
return | string |
public static DecompressString ( byte value, int offset, int length ) : string | ||
value | byte | |
offset | int | |
length | int | |
return | string |