com.ibm.jzos
Class ZCompressor.Result
- java.lang.Object
-
- com.ibm.jzos.ZCompressor.Result
-
- Enclosing class:
- ZCompressor
public static class ZCompressor.Result extends java.lang.Object
An instance of this inner class is returned for the continuousZCompressor.compress(byte[], int, int, byte[], int, int)
andZCompressor.expand(byte[], int, byte[], int, int, int)
methods to report the bytes and bits used in the input and output buffers.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getExtraCompressedBitsUsed()
int
getSourceBytesUsed()
int
getTargetBytesUsed()
-
-
-
Method Detail
-
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.
-
-