protected static class CompressorProvider.TileCompressorControl extends Object implements ICompressorControl
Modifier | Constructor and Description |
---|---|
protected |
TileCompressorControl(Class<?> compressorClass) |
protected |
TileCompressorControl(Class<?> compressorClass,
Class<?> parametersClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
compress(Buffer in,
ByteBuffer out,
ICompressOption option)
Compress the buffer into the byte buffer using the specified options.
|
void |
decompress(ByteBuffer in,
Buffer out,
ICompressOption option)
decompress the byte buffer back into the buffer using the specified
options.
|
ICompressOption |
option() |
protected TileCompressorControl(Class<?> compressorClass)
public boolean compress(Buffer in, ByteBuffer out, ICompressOption option)
ICompressorControl
compress
in interface ICompressorControl
in
- the buffer to compress.out
- the compressed data to fill (must already be allocated with
enough space)option
- the options to use for the compressionpublic void decompress(ByteBuffer in, Buffer out, ICompressOption option)
ICompressorControl
decompress
in interface ICompressorControl
in
- the bytes to decompress.out
- the buffer to fill with the decompressed data (must already be
allocated with enough space)option
- the options to use for decompressing.public ICompressOption option()
option
in interface ICompressorControl
Copyright © 1996–2016 nom-tam-fits. All rights reserved.