Mercurial > hg > orthanc-imagej
view com/hjg/pngj/ChunkSeqBuffering.java @ 4:3f418d4451d6 pngj
add pngj
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 15 Apr 2016 09:52:58 +0200 |
parents | |
children |
line wrap: on
line source
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; } }