public static class ZCompressor.Result
extends java.lang.Object
ZCompressor.compress(byte[], int, int, byte[], int, int) and
ZCompressor.expand(byte[], int, byte[], int, int, int) methods to report the
bytes and bits used in the input and output buffers.| Modifier and Type | Method and Description |
|---|---|
int |
getExtraCompressedBitsUsed() |
int |
getSourceBytesUsed() |
int |
getTargetBytesUsed() |
public int getSourceBytesUsed()
ZCompressor.compress(byte[], int, int, byte[], int, int),
returns the number of bytes of uncompressed data that was used.
If called after ZCompressor.expand(byte[], int, byte[], int, int, int),
returns the number of bytes of compressed data that was used.public int getTargetBytesUsed()
ZCompressor.compress(byte[], int, int, byte[], int, int),
returns the number of bytes of compressed data that was written.
If called after ZCompressor.expand(byte[], int, byte[], int, int, int),
returns the number of bytes of expanded data that was written.public int getExtraCompressedBitsUsed()
ZCompressor.compress(byte[], int, int, byte[], int, int),
returns the number of extra compressed bits written.
If called after ZCompressor.expand(byte[], int, byte[], int, int, int),
returns the number of extra compressed bits used.