ChunkDecoder, although static methods are left here
and may still be used for convenience.
All static methods use ChunkDecoderFactory#optimalInstance
to find actual ChunkDecoder instance to use.
com.ning.compress.lzf.ChunkDecoder
| Modifier and Type | Field and Description |
|---|---|
| protected static final AtomicReference | _fastDecoderRef
Lazily initialized "fast" instance that may use |
| protected static final AtomicReference | _safeDecoderRef
Lazily initialized "safe" instance that DOES NOT use |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | calculateUncompressedSize(byte[] data, int offset, int length)
Helper method that checks resulting size of an LZF chunk, regardless of whether it contains compressed or uncompressed contents. |
| public static byte[] | |
| public static byte[] | |
| public static int | |
| public static int | |
| public static ChunkDecoder | fastDecoder()
Accessor method that can be used to obtain |
| public static byte[] | |
| public static byte[] | |
| public static int | |
| public static int | |
| public static ChunkDecoder | safeDecoder()
Accessor method that can be used to obtain |
| _fastDecoderRef | back to summary |
|---|---|
| protected static final AtomicReference<ChunkDecoder> _fastDecoderRef Lazily initialized "fast" instance that may use | |
| _safeDecoderRef | back to summary |
|---|---|
| protected static final AtomicReference<ChunkDecoder> _safeDecoderRef Lazily initialized "safe" instance that DOES NOT use | |
| LZFDecoder | back to summary |
|---|---|
| public LZFDecoder() | |
| calculateUncompressedSize | back to summary |
|---|---|
| public static int calculateUncompressedSize(byte[] data, int offset, int length) throws LZFException Helper method that checks resulting size of an LZF chunk, regardless of whether it contains compressed or uncompressed contents. | |
| decode | back to summary |
|---|---|
| public static byte[] decode(final byte[] inputBuffer) throws LZFException | |
| decode | back to summary |
|---|---|
| public static byte[] decode(final byte[] inputBuffer, int offset, int length) throws LZFException | |
| decode | back to summary |
|---|---|
| public static int decode(final byte[] inputBuffer, final byte[] targetBuffer) throws LZFException | |
| decode | back to summary |
|---|---|
| public static int decode(final byte[] sourceBuffer, int offset, int length, final byte[] targetBuffer) throws LZFException | |
| fastDecoder | back to summary |
|---|---|
| public static ChunkDecoder fastDecoder() Accessor method that can be used to obtain | |
| safeDecode | back to summary |
|---|---|
| public static byte[] safeDecode(final byte[] inputBuffer) throws LZFException | |
| safeDecode | back to summary |
|---|---|
| public static byte[] safeDecode(final byte[] inputBuffer, int offset, int length) throws LZFException | |
| safeDecode | back to summary |
|---|---|
| public static int safeDecode(final byte[] inputBuffer, final byte[] targetBuffer) throws LZFException | |
| safeDecode | back to summary |
|---|---|
| public static int safeDecode(final byte[] sourceBuffer, int offset, int length, final byte[] targetBuffer) throws LZFException | |
| safeDecoder | back to summary |
|---|---|
| public static ChunkDecoder safeDecoder() Accessor method that can be used to obtain | |