WarpPI/desktop/src/main/java/ar/com/hjg/pngj/ChunkSeqBuffering.java

31 lines
598 B
Java
Raw Normal View History

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