public class CompressNo extends Object implements Compressor
DEFLATE, LZF, NO| Constructor and Description |
|---|
CompressNo() |
| Modifier and Type | Method and Description |
|---|---|
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(String options)
Set the compression options.
|
public int getAlgorithm()
CompressorgetAlgorithm in interface Compressorpublic void setOptions(String options)
CompressorsetOptions in interface Compressoroptions - the optionspublic int compress(byte[] in,
int inLen,
byte[] out,
int outPos)
Compressorcompress in interface Compressorin - the input datainLen - the number of bytes to compressout - the output areaoutPos - the offset at the output arraypublic void expand(byte[] in,
int inPos,
int inLen,
byte[] out,
int outPos,
int outLen)
Compressorexpand 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 dataCopyright © 2012 JBoss by Red Hat. All Rights Reserved.