public interface BufferCompressor
CompressionFactory
Modifier and Type | Method and Description |
---|---|
int |
compressBuffer(byte[] output,
int outoff,
byte[] input,
int inoff,
int inlen)
Compress a discrete buffer.
|
int |
expandBuffer(byte[] output,
int outoff,
byte[] input,
int inoff,
int inlen)
Expand a discrete buffer.
|
int compressBuffer(byte[] output, int outoff, byte[] input, int inoff, int inlen) throws java.lang.RuntimeException
output
- output buffer that will hold the compressed dataoutoff
- offset into the output buffer to write the compressed datainput
- input buffer containing the data to be compressedinoff
- offset into the input bufferinlen
- the size of the data to be compressedjava.lang.RuntimeException
- depending on the implementationint expandBuffer(byte[] output, int outoff, byte[] input, int inoff, int inlen) throws java.lang.RuntimeException
output
- output buffer that will hold the expanded dataoutoff
- offset into the output buffer to write the expanded datainput
- input buffer containing the data to be expandedinoff
- offset into the input bufferinlen
- the size of the data to be expandedjava.lang.RuntimeException
- depending on the implementation