public class ZLibWrapper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPRESSED_BUFF_SIZE
Field description
|
static int |
DECOMPRESSED_BUFF_SIZE
Field description
|
| Constructor and Description |
|---|
ZLibWrapper()
Constructs ...
|
ZLibWrapper(int level)
Constructs ...
|
ZLibWrapper(int level,
int comp_buff_size)
Constructs ...
|
| Modifier and Type | Method and Description |
|---|---|
float |
averageCompressionRate()
Method description
|
float |
averageDecompressionRate()
Method description
|
java.nio.ByteBuffer |
compress(java.nio.ByteBuffer input) |
java.nio.ByteBuffer |
compress(java.lang.String input)
Method description
|
java.nio.ByteBuffer |
decompress(java.nio.ByteBuffer input)
Method description
|
java.lang.String |
decompressToString(java.nio.ByteBuffer input)
Method description
|
void |
end()
Method description
|
float |
lastCompressionRate()
Method description
|
float |
lastDecompressionRate()
Method description
|
static void |
main(java.lang.String[] args)
Method description
|
public static final int COMPRESSED_BUFF_SIZE
public static final int DECOMPRESSED_BUFF_SIZE
public ZLibWrapper()
public ZLibWrapper(int level)
level - public ZLibWrapper(int level,
int comp_buff_size)
level - comp_buff_size - public static void main(java.lang.String[] args)
throws java.lang.Exception
args - java.lang.Exceptionpublic float averageCompressionRate()
public float averageDecompressionRate()
public java.nio.ByteBuffer compress(java.nio.ByteBuffer input)
input - public java.nio.ByteBuffer compress(java.lang.String input)
throws java.nio.charset.CharacterCodingException
input - java.nio.charset.CharacterCodingExceptionpublic java.nio.ByteBuffer decompress(java.nio.ByteBuffer input)
input - public java.lang.String decompressToString(java.nio.ByteBuffer input)
throws java.nio.charset.CharacterCodingException
input - java.nio.charset.CharacterCodingExceptionpublic void end()
public float lastCompressionRate()
public float lastDecompressionRate()