// 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;
try {
is = getInputStream(byteSource, PSD_SECTION_IMAGE_DATA);
fDataReader.readData(is, result, imageContents, this);
fDataReader.dump();
// is.
// ImageContents imageContents = readImageContents(is);
// return imageContents;
} finally {
try {