|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.twelvemonkeys.io.enc.PackBitsEncoder
public final class PackBitsEncoder
Encoder implementation for Apple PackBits run-length encoding.
From Wikipedia, the free encyclopedia| Header byte | Data |
|---|---|
| 0 to 127 | 1 + n literal bytes of data |
| 0 to -127 | One byte of data, repeated 1 - n times in the decompressed output |
| -128 | No operation |
| Constructor Summary | |
|---|---|
PackBitsEncoder()
Creates a PackBitsEncoder. |
|
| Method Summary | |
|---|---|
void |
encode(java.io.OutputStream stream,
java.nio.ByteBuffer buffer)
Encodes up to buffer.remaining() bytes into the given input stream,
from the given buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackBitsEncoder()
PackBitsEncoder.
| Method Detail |
|---|
public void encode(java.io.OutputStream stream,
java.nio.ByteBuffer buffer)
throws java.io.IOException
Encoderbuffer.remaining() bytes into the given input stream,
from the given buffer.
encode in interface Encoderstream - the output stream to encode data tobuffer - buffer to read data from
java.io.IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||