public JPEGDecoder(ImageInputStream in, boolean fastIDCTMode, boolean supportICC){
this.in = in;
this.fastIDCTMode = fastIDCTMode;
this.supportICC = supportICC;
super.addExtendHeaderReader(MarkerConstants.APP0, new JFIFHeaderReader());
if (supportICC) {
super.addExtendHeaderReader(MarkerConstants.APP2, new ICCProfileReader());
}
super.addExtendHeaderReader(MarkerConstants.APP14, new AdobeHeaderReader());