com.ning.compress.lzf
Class LZFDecoder
java.lang.Object
com.ning.compress.lzf.LZFDecoder
public class LZFDecoder
- extends Object
Decoder that handles decoding of sequence of encoded LZF chunks,
combining them into a single contiguous result byte array.
As of version 0.9, this class has been mostly replaced by
ChunkDecoder, although static methods are left here
and may still be used.
All static methods use ChunkDecoderFactory.optimalInstance()
to find actual ChunkDecoder instance to use.
- Author:
- Tatu Saloranta (tatu@ning.com)
|
Method Summary |
static int |
calculateUncompressedSize(byte[] data,
int ptr,
int length)
|
static byte[] |
decode(byte[] inputBuffer)
|
static int |
decode(byte[] inputBuffer,
byte[] targetBuffer)
|
static byte[] |
decode(byte[] inputBuffer,
int inputPtr,
int inputLen)
|
static int |
decode(byte[] sourceBuffer,
int inPtr,
int inLength,
byte[] targetBuffer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LZFDecoder
public LZFDecoder()
decode
public static byte[] decode(byte[] inputBuffer)
throws IOException
- Throws:
IOException
decode
public static byte[] decode(byte[] inputBuffer,
int inputPtr,
int inputLen)
throws IOException
- Throws:
IOException
decode
public static int decode(byte[] inputBuffer,
byte[] targetBuffer)
throws IOException
- Throws:
IOException
decode
public static int decode(byte[] sourceBuffer,
int inPtr,
int inLength,
byte[] targetBuffer)
throws IOException
- Throws:
IOException
calculateUncompressedSize
public static int calculateUncompressedSize(byte[] data,
int ptr,
int length)
throws IOException
- Throws:
IOException
Copyright © 2011. All Rights Reserved.