public class LZWCodec extends Object implements IByteArrayCodec
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LZWCodec.AbstractLZWDictionary |
protected static class |
LZWCodec.LZWDecodeDictionary |
protected static class |
LZWCodec.LZWEncodeDictionary |
protected static class |
LZWCodec.LZWNode
A single LZW node
|
| Constructor and Description |
|---|
LZWCodec() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(byte[] aEncodedBuffer,
int nOfs,
int nLen,
OutputStream aOS)
Decode a byte array.
|
void |
decode(InputStream aEncodedIS,
OutputStream aOS) |
void |
encode(byte[] aBuffer,
int nOfs,
int nLen,
OutputStream aOS)
Encode (part of) a byte array to an
OutputStream. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDecoded, getDecodedAsString, getDecodedAsString, getDecodedAsStringgetDecoded, getDecoded, getDecodedLengthgetEncoded, getEncoded, getEncoded, getEncodedAsString, getEncodedAsString, getEncodedAsString, getEncodedLengthpublic void encode(@Nullable byte[] aBuffer, @Nonnegative int nOfs, @Nonnegative int nLen, @Nonnull @WillNotClose OutputStream aOS)
IByteArrayStreamEncoderOutputStream.encode in interface IByteArrayStreamEncoderaBuffer - The byte array to be encoded. 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!public void decode(@Nonnull @WillNotClose InputStream aEncodedIS, @Nonnull @WillNotClose OutputStream aOS)
public void decode(@Nullable byte[] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen, @Nonnull @WillNotClose OutputStream aOS)
IByteArrayStreamDecoderdecode in interface IByteArrayStreamDecoderaEncodedBuffer - 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–2016 Philip Helger. All rights reserved.