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(InputStream is,
byte[] inputBuffer,
byte[] outputBuffer)
Main decode from a stream.
|
int |
skipOrDecodeChunk(InputStream is,
byte[] inputBuffer,
byte[] outputBuffer,
long maxToSkip) |
_reportArrayOverflow, _reportCorruptHeader, calculateUncompressedSize, decode, decode, decode, decode, readFully, readHeader, skipFully, uint16public final int decodeChunk(InputStream is, byte[] inputBuffer, byte[] outputBuffer) throws 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 returnedIOExceptionpublic final void decodeChunk(byte[] in,
int inPos,
byte[] out,
int outPos,
int outEnd)
throws LZFException
ChunkDecoderdecodeChunk in class ChunkDecoderLZFExceptionpublic int skipOrDecodeChunk(InputStream is, byte[] inputBuffer, byte[] outputBuffer, long maxToSkip) throws IOException
skipOrDecodeChunk in class ChunkDecoderreturnValue = -(decodedAmount + 2))IOExceptionprotected static final void copyUpTo32WithSwitch(byte[] in,
int inPos,
byte[] out,
int outPos,
int lengthMinusOne)
Copyright © 2014. All Rights Reserved.