// break;
default:
throw new ImageReadException("Unknown Mode: "
+ imageContents.header.mode);
}
DataReader fDataReader;
switch (imageContents.Compression) {
case 0:
fDataReader = new UncompressedDataReader(dataParser);
break;
case 1:
fDataReader = new CompressedDataReader(dataParser);
break;
default:
throw new ImageReadException("Unknown Compression: "
+ imageContents.Compression);
}
InputStream is = null;
boolean canThrow = false;
try {
is = getInputStream(byteSource, PSD_SECTION_IMAGE_DATA);
fDataReader.readData(is, result, imageContents, this);
canThrow = true;
// is.
// ImageContents imageContents = readImageContents(is);
// return imageContents;