|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.twelvemonkeys.io.enc.PackBits16Decoder
public final class PackBits16Decoder
Decoder implementation for 16 bit-chunked Apple PackBits-like run-length encoding.
This version of the decoder decodes chunk of 16 bit, instead of 8 bit. This format is used in certain PICT files.
PackBitsDecoder| Constructor Summary | |
|---|---|
PackBits16Decoder()
Creates a PackBitsDecoder. |
|
PackBits16Decoder(boolean pDisableNoop)
Creates a PackBitsDecoder. |
|
| Method Summary | |
|---|---|
int |
decode(InputStream stream,
ByteBuffer buffer)
Decodes bytes from the given input stream, to the given buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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-op| Method Detail |
|---|
public 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 long
IOException
DecodeException - if encoded data is corrupt.
EOFException - if a premature end-of-file is encountered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||