31 lines
598 B
Java
31 lines
598 B
Java
package ar.com.hjg.pngj;
|
|
|
|
/**
|
|
* This loads the png as a plain sequence of chunks, buffering all
|
|
*
|
|
* Useful to do things like insert or delete a ancilllary chunk. This does not
|
|
* distinguish IDAT from others
|
|
**/
|
|
public class ChunkSeqBuffering extends ChunkSeqReader {
|
|
protected boolean checkCrc = true;
|
|
|
|
public ChunkSeqBuffering() {
|
|
super();
|
|
}
|
|
|
|
@Override
|
|
protected boolean isIdatKind(String id) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
protected boolean shouldCheckCrc(int len, String id) {
|
|
return checkCrc;
|
|
}
|
|
|
|
public void setCheckCrc(boolean checkCrc) {
|
|
this.checkCrc = checkCrc;
|
|
}
|
|
|
|
}
|