|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Compressor
Each data compression algorithm must implement this interface.
| Field Summary | |
|---|---|
static int |
DEFLATE
The DEFLATE compression algorithm is used. |
static int |
LZF
The LZF compression algorithm is used |
static int |
NO
No compression is used. |
| Method Summary | |
|---|---|
int |
compress(byte[] in,
int inLen,
byte[] out,
int outPos)
Compress a number of bytes. |
void |
expand(byte[] in,
int inPos,
int inLen,
byte[] out,
int outPos,
int outLen)
Expand a number of compressed bytes. |
int |
getAlgorithm()
Get the compression algorithm type. |
void |
setOptions(java.lang.String options)
Set the compression options. |
| Field Detail |
|---|
static final int NO
static final int LZF
static final int DEFLATE
| Method Detail |
|---|
int getAlgorithm()
int compress(byte[] in,
int inLen,
byte[] out,
int outPos)
in - the input datainLen - the number of bytes to compressout - the output areaoutPos - the offset at the output array
void expand(byte[] in,
int inPos,
int inLen,
byte[] out,
int outPos,
int outLen)
in - the compressed datainPos - the offset at the input arrayinLen - the number of bytes to readout - the output areaoutPos - the offset at the output arrayoutLen - the size of the uncompressed datavoid setOptions(java.lang.String options)
options - the options
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||