public final class PackBitsEncoder extends java.lang.Object implements Encoder
| 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 and Description |
|---|
PackBitsEncoder()
Creates a
PackBitsEncoder. |
| Modifier and Type | Method and Description |
|---|---|
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. |
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.Copyright © 2018. All Rights Reserved.