public class RunLengthCodec extends Object implements IByteArrayStreamDecoder
Modifier and Type | Field and Description |
---|---|
protected static int |
RUN_LENGTH_EOD |
Constructor and Description |
---|
RunLengthCodec() |
Modifier and Type | Method and Description |
---|---|
void |
decode(byte[] aEncodedBuffer,
int nOfs,
int nLen,
OutputStream aOS)
Decode (part of) a byte array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, getDecoded, getDecodedAsString, getDecodedAsString, getDecodedAsString, getDecodedAsString
getDecoded, getDecoded, getDecodedLength, getMaximumDecodedLength
protected static final int RUN_LENGTH_EOD
public void decode(@Nullable byte[] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen, @Nonnull @WillNotClose OutputStream aOS)
IByteArrayStreamDecoder
decode
in interface IByteArrayStreamDecoder
aEncodedBuffer
- The byte array to be decoded. May be null
.nOfs
- Offset into the byte array to start from.nLen
- Number of bytes starting from offset to consider.aOS
- The output stream to write to. May not be null
and is
NOT closed afterwards!Copyright © 2014–2019 Philip Helger. All rights reserved.