public class LZWCodec extends AbstractByteArrayCodec
| 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 |
|---|---|
byte[] |
getDecoded(byte[] aEncodedBuffer)
Decode a byte array.
|
static byte[] |
getDecodedLZW(byte[] aEncodedBuffer) |
static void |
getDecodedLZW(InputStream aEncodedIS,
OutputStream aOS) |
byte[] |
getEncoded(byte[] aBuffer)
Encode a byte array.
|
static byte[] |
getEncodedLZW(byte[] aBuffer) |
static void |
getEncodedLZW(byte[] aBuffer,
OutputStream aOS)
LZW-encode the passed byte array to the passed output stream
|
getEncodedgetDecodedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDecoded@Nullable @ReturnsMutableCopy public static byte[] getDecodedLZW(@Nullable byte[] aEncodedBuffer)
public static void getDecodedLZW(@Nonnull@WillNotClose InputStream aEncodedIS, @Nonnull@WillNotClose OutputStream aOS)
@Nullable @ReturnsMutableCopy public byte[] getDecoded(@Nullable byte[] aEncodedBuffer)
IByteArrayDecoderaEncodedBuffer - The byte array to be decoded. May not be null.null if the parameter was
null.@Nullable @ReturnsMutableCopy public static byte[] getEncodedLZW(@Nullable byte[] aBuffer)
public static void getEncodedLZW(@Nullable byte[] aBuffer, @Nonnull@WillNotClose OutputStream aOS)
aBuffer - The buffer to be encoded. May be null in which case
nothing happens.aOS - The output stream to encode the content to. The output stream is not
closed after encoding is done! May not be null.@Nullable @ReturnsMutableCopy public byte[] getEncoded(@Nullable byte[] aBuffer)
IByteArrayEncoderaBuffer - The byte array to be encoded. May be null.null if the parameter was
null.Copyright © 2014–2015 Philip Helger. All rights reserved.