java.lang.Object
com.ibm.jzos.ZCompressor.Result
- Enclosing class:
- ZCompressor
An instance of this inner class is returned for the continuous
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.-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
-
Method Details
-
getSourceBytesUsed
public int getSourceBytesUsed()- Returns:
- If called after
ZCompressor.compress(byte[], int, int, byte[], int, int)
, returns the number of bytes of uncompressed data that was used. If called afterZCompressor.expand(byte[], int, byte[], int, int, int)
, returns the number of bytes of compressed data that was used.
-
getTargetBytesUsed
public int getTargetBytesUsed()- Returns:
- If called after
ZCompressor.compress(byte[], int, int, byte[], int, int)
, returns the number of bytes of compressed data that was written. If called afterZCompressor.expand(byte[], int, byte[], int, int, int)
, returns the number of bytes of expanded data that was written.
-
getExtraCompressedBitsUsed
public int getExtraCompressedBitsUsed()- Returns:
- If called after
ZCompressor.compress(byte[], int, int, byte[], int, int)
, returns the number of extra compressed bits written. If called afterZCompressor.expand(byte[], int, byte[], int, int, int)
, returns the number of extra compressed bits used.
-