public class ZLibWrapper extends 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
|
ByteBuffer |
compress(ByteBuffer input) |
ByteBuffer |
compress(String input)
Method description
|
ByteBuffer |
decompress(ByteBuffer input)
Method description
|
String |
decompressToString(ByteBuffer input)
Method description
|
void |
end()
Method description
|
float |
lastCompressionRate()
Method description
|
float |
lastDecompressionRate()
Method description
|
static void |
main(String[] args)
Method description
|
void |
setIOListener(IOListener listener) |
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(String[] args) throws Exception
args
- Exception
public float averageCompressionRate()
public float averageDecompressionRate()
public ByteBuffer compress(ByteBuffer input)
input
- public ByteBuffer compress(String input) throws CharacterCodingException
input
- CharacterCodingException
public ByteBuffer decompress(ByteBuffer input) throws IOException
input
- IOException
public String decompressToString(ByteBuffer input) throws CharacterCodingException, IOException
input
- CharacterCodingException
IOException
public void end()
public float lastCompressionRate()
public float lastDecompressionRate()
public void setIOListener(IOListener listener)
Copyright © 2017 "Tigase, Inc.". All rights reserved.