|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRecordCompressor
Interface for record-level compression.
| Method Summary | |
|---|---|
void |
compress(byte[] bytes,
int off,
int len,
OutputStream os)
Compresses data onto the output stream. |
void |
compress(byte[] bytes,
OutputStream os)
Compresses data onto the output stream. |
void |
compress(ByteBuffer bin,
OutputStream os)
Compresses data onto the output stream. |
ByteBuffer |
decompress(byte[] bin)
Decompress a byte[] containing the record and return the
uncompressed state. |
ByteBuffer |
decompress(ByteBuffer bin)
Decompress a ByteBuffer containing the record and return the
uncompressed state. |
| Method Detail |
|---|
void compress(ByteBuffer bin,
OutputStream os)
bin - The data. The data from the position to the limit will be
compressed. The position will be advanced to the limit as a
side effect.os - The stream onto which the compressed data are written.
void compress(byte[] bytes,
OutputStream os)
bytes - The data.os - The stream onto which the compressed data are written.
void compress(byte[] bytes,
int off,
int len,
OutputStream os)
bytes - The source data.off - The offset of the first source byte that will be compressed
onto the output stream.len - The #of source bytes that will be compressed onto the output
stream.os - The stream onto which the compressed data are written.ByteBuffer decompress(ByteBuffer bin)
ByteBuffer containing the record and return the
uncompressed state.
bin - The compressed data.
ByteBuffer decompress(byte[] bin)
byte[] containing the record and return the
uncompressed state.
bin - The compressed data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||