public class VanillaChunkDecoder extends ChunkDecoder
ChunkDecoder implementation that can be used on any
platform.BYTE_NULL, HEADER_BYTES| Constructor and Description |
|---|
VanillaChunkDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
copyUpTo32WithSwitch(byte[] in,
int inPos,
byte[] out,
int outPos,
int lengthMinusOne) |
void |
decodeChunk(byte[] in,
int inPos,
byte[] out,
int outPos,
int outEnd)
Main decode method for individual chunks.
|
int |
decodeChunk(java.io.InputStream is,
byte[] inputBuffer,
byte[] outputBuffer)
Main decode from a stream.
|
int |
skipOrDecodeChunk(java.io.InputStream is,
byte[] inputBuffer,
byte[] outputBuffer,
long maxToSkip) |
_reportArrayOverflow, _reportCorruptHeader, calculateUncompressedSize, decode, decode, decode, decode, readFully, readHeader, skipFully, uint16public final int decodeChunk(java.io.InputStream is,
byte[] inputBuffer,
byte[] outputBuffer)
throws java.io.IOException
ChunkDecoderdecodeChunk in class ChunkDecoderis - An input stream of LZF compressed bytesinputBuffer - A byte array used as a scratch area.outputBuffer - A byte array in which the result is returnedjava.io.IOExceptionpublic final void decodeChunk(byte[] in,
int inPos,
byte[] out,
int outPos,
int outEnd)
throws LZFException
ChunkDecoderdecodeChunk in class ChunkDecoderLZFExceptionpublic int skipOrDecodeChunk(java.io.InputStream is,
byte[] inputBuffer,
byte[] outputBuffer,
long maxToSkip)
throws java.io.IOException
skipOrDecodeChunk in class ChunkDecoderreturnValue = -(decodedAmount + 2))java.io.IOExceptionprotected static final void copyUpTo32WithSwitch(byte[] in,
int inPos,
byte[] out,
int outPos,
int lengthMinusOne)