|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.compress.CompressDeflate
public class CompressDeflate
This is a wrapper class for the Deflater class. This algorithm supports the following options:
| Field Summary |
|---|
| Fields inherited from interface org.h2.compress.Compressor |
|---|
DEFLATE, LZF, NO |
| Constructor Summary | |
|---|---|
CompressDeflate()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompressDeflate()
| Method Detail |
|---|
public void setOptions(java.lang.String options)
Compressor
setOptions in interface Compressoroptions - the options
public int compress(byte[] in,
int inLen,
byte[] out,
int outPos)
Compressor
compress in interface Compressorin - the input datainLen - the number of bytes to compressout - the output areaoutPos - the offset at the output array
public int getAlgorithm()
Compressor
getAlgorithm in interface Compressor
public void expand(byte[] in,
int inPos,
int inLen,
byte[] out,
int outPos,
int outLen)
Compressor
expand in interface Compressorin - 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 data
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||