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, uint16
public final int decodeChunk(InputStream is, byte[] inputBuffer, byte[] outputBuffer) throws IOException
ChunkDecoder
decodeChunk
in class ChunkDecoder
is
- An input stream of LZF compressed bytesinputBuffer
- A byte array used as a scratch area.outputBuffer
- A byte array in which the result is returnedIOException
public final void decodeChunk(byte[] in, int inPos, byte[] out, int outPos, int outEnd) throws LZFException
ChunkDecoder
decodeChunk
in class ChunkDecoder
LZFException
public int skipOrDecodeChunk(InputStream is, byte[] inputBuffer, byte[] outputBuffer, long maxToSkip) throws IOException
skipOrDecodeChunk
in class ChunkDecoder
returnValue = -(decodedAmount + 2)
)IOException
protected static final void copyUpTo32WithSwitch(byte[] in, int inPos, byte[] out, int outPos, int lengthMinusOne)
Copyright © 2015. All rights reserved.