public class DeflatedChunkReader extends ChunkReader
ChunkReader.ChunkReaderMode
Modifier and Type | Field and Description |
---|---|
protected boolean |
alsoBuffer |
protected DeflatedChunksSet |
deflatedChunksSet |
protected int |
seqNumExpected |
protected boolean |
skipBytes |
protected byte[] |
skippedBytes |
mode, read
Constructor and Description |
---|
DeflatedChunkReader(int clen,
String chunkid,
boolean checkCrc,
long offsetInPng,
DeflatedChunksSet iDatSet) |
Modifier and Type | Method and Description |
---|---|
protected void |
chunkDone()
only a stupid check for fDAT (I wonder how many APGN readers do this)
|
boolean |
isFromDeflatedSet() |
protected void |
processData(int offsetInchunk,
byte[] buf,
int off,
int len)
Delegates to ChunkReaderDeflatedSet.processData()
|
void |
setAlsoBuffer()
In some rare cases you might want to also buffer the data?
|
void |
setSeqNumExpected(int seqNumExpected)
only relevant for fDAT
|
equals, feedBytes, getChunkRaw, hashCode, isDone, setCrcCheck, toString
protected final DeflatedChunksSet deflatedChunksSet
protected boolean alsoBuffer
protected boolean skipBytes
protected byte[] skippedBytes
protected int seqNumExpected
public DeflatedChunkReader(int clen, String chunkid, boolean checkCrc, long offsetInPng, DeflatedChunksSet iDatSet)
protected void processData(int offsetInchunk, byte[] buf, int off, int len)
processData
in class ChunkReader
offsetInchunk
- data bytes that had already been read/processed for this chunkprotected void chunkDone()
chunkDone
in class ChunkReader
public boolean isFromDeflatedSet()
isFromDeflatedSet
in class ChunkReader
public void setAlsoBuffer()
public void setSeqNumExpected(int seqNumExpected)
Copyright © 2014. All rights reserved.