public final class PackBits16Decoder extends Object implements Decoder
PackBitsDecoder| Constructor and Description |
|---|
PackBits16Decoder()
Creates a
PackBitsDecoder. |
PackBits16Decoder(boolean pDisableNoop)
Creates a
PackBitsDecoder. |
| Modifier and Type | Method and Description |
|---|---|
int |
decode(InputStream stream,
ByteBuffer buffer)
Decodes bytes from the given input stream, to the given buffer.
|
public PackBits16Decoder()
PackBitsDecoder.public PackBits16Decoder(boolean pDisableNoop)
PackBitsDecoder.
As some implementations of PackBits-like encoders treat -128 as length of
a compressed run, instead of a no-op, it's possible to disable no-ops
for compatibility.
Should be used with caution, even though, most known encoders never write
no-ops in the compressed streams.pDisableNoop - true if -128 should be treated as a compressed run, and not a no-oppublic int decode(InputStream stream, ByteBuffer buffer) throws IOException
decode in interface Decoderstream - the stream to decode frombuffer - a byte array, minimum 128 (or 129 if no-op is disabled)
bytes longIOExceptionDecodeException - if encoded data is corruptEOFException - if a premature end-of-file is encounteredCopyright © 2014. All Rights Reserved.