The base class that provides methods for the compression and decompression operation.
More...
◆ Compression()
Constructs the compression algorithm
- Parameters
-
context | Context to manage the compression algorithm |
◆ checkInputParams() [1/2]
void checkInputParams |
( |
byte [] |
inBlock, |
|
|
long |
size |
|
) |
| |
Checks of the input stream parameters
- Parameters
-
inBlock | Input data block |
size | Size in bytes of the input data block |
◆ checkInputParams() [2/2]
void checkInputParams |
( |
byte [] |
inBlock | ) |
|
Checks of the input stream parameters
- Parameters
-
◆ checkOutputParams() [1/2]
void checkOutputParams |
( |
byte [] |
outBlock, |
|
|
long |
size |
|
) |
| |
Checks of the output stream parameters
- Parameters
-
outBlock | Output data block |
size | Size in bytes of the output data block |
◆ checkOutputParams() [2/2]
void checkOutputParams |
( |
byte [] |
outBlock | ) |
|
Checks of the output stream parameters
- Parameters
-
outBlock | Output data block |
◆ dispose()
◆ getUsedOutputDataBlockSize()
long getUsedOutputDataBlockSize |
( |
| ) |
|
Returns the number of bytes used after run() method was called
- Returns
- Number of used bytes
◆ isOutputDataBlockFull()
boolean isOutputDataBlockFull |
( |
| ) |
|
Reports whether output data block is full after run() method was called
- Returns
- True if output data block is full, false otherwise
◆ run()
void run |
( |
byte [] |
outBlock, |
|
|
long |
size, |
|
|
long |
offset |
|
) |
| |
Performs the compression(or decompression) of the data block
- Parameters
-
outBlock | Data block where compression(or decompression) results to be stored. Must be at least size+offset bytes |
size | Number of bytes available in outBlock |
offset | Offset in bytes, the starting position for the compression(or decompression) in outBlock |
◆ setInputDataBlock() [1/3]
void setInputDataBlock |
( |
byte [] |
inBlock, |
|
|
long |
srcSize, |
|
|
long |
offset |
|
) |
| |
Associates input data block with the Compressor(or Decompressor)
- Parameters
-
inBlock | Data block to compress(or decompress). Must be at least srcSize+offset bytes |
srcSize | The number of bytes to compress(or decompress) in the inBlock |
offset | Offset in bytes, the starting position for the compression(or decompression) in inBlock |
◆ setInputDataBlock() [2/3]
void setInputDataBlock |
( |
byte [] |
inBlock, |
|
|
long |
offset |
|
) |
| |
Associates input data block with the Compressor(or Decompressor)
- Parameters
-
inBlock | Data block to compress(or decompress) |
offset | Offset in bytes, the starting position for the compression(or decompression) in inBlock |
◆ setInputDataBlock() [3/3]
void setInputDataBlock |
( |
byte [] |
inBlock | ) |
|
Associates input data block with the compressor(or decompressor)
- Parameters
-
inBlock | Data block to compress(or decompress) |
The documentation for this class was generated from the following file: