/* 419 */ String msg = JaiI18N.getString("PNGImageDecoder0");
/* 420 */ throw new RuntimeException(msg);
/* */ }
/* */ } catch (Exception e) {
/* 423 */ String message = JaiI18N.getString("PNGImageDecoder1");
/* 424 */ ImagingListenerProxy.errorOccurred(message, new ImagingException(message, e), this, false);
/* */ }
/* */
/* */ while (true)
/* */ {
/* */ try
/* */ {
/* 438 */ String chunkType = getChunkType(distream);
/* 439 */ if (chunkType.equals("IHDR")) {
/* 440 */ PNGChunk chunk = readChunk(distream);
/* 441 */ parse_IHDR_chunk(chunk);
/* 442 */ } else if (chunkType.equals("PLTE")) {
/* 443 */ PNGChunk chunk = readChunk(distream);
/* 444 */ parse_PLTE_chunk(chunk);
/* 445 */ } else if (chunkType.equals("IDAT")) {
/* 446 */ PNGChunk chunk = readChunk(distream);
/* 447 */ this.streamVec.add(new ByteArrayInputStream(chunk.getData())); } else {
/* 448 */ if (chunkType.equals("IEND")) {
/* 449 */ PNGChunk chunk = readChunk(distream);
/* 450 */ parse_IEND_chunk(chunk);
/* 451 */ break;
/* 452 */ }if (chunkType.equals("bKGD")) {
/* 453 */ PNGChunk chunk = readChunk(distream);
/* 454 */ parse_bKGD_chunk(chunk);
/* 455 */ } else if (chunkType.equals("cHRM")) {
/* 456 */ PNGChunk chunk = readChunk(distream);
/* 457 */ parse_cHRM_chunk(chunk);
/* 458 */ } else if (chunkType.equals("gAMA")) {
/* 459 */ PNGChunk chunk = readChunk(distream);
/* 460 */ parse_gAMA_chunk(chunk);
/* 461 */ } else if (chunkType.equals("hIST")) {
/* 462 */ PNGChunk chunk = readChunk(distream);
/* 463 */ parse_hIST_chunk(chunk);
/* 464 */ } else if (chunkType.equals("iCCP")) {
/* 465 */ PNGChunk chunk = readChunk(distream);
/* 466 */ parse_iCCP_chunk(chunk);
/* 467 */ } else if (chunkType.equals("pHYs")) {
/* 468 */ PNGChunk chunk = readChunk(distream);
/* 469 */ parse_pHYs_chunk(chunk);
/* 470 */ } else if (chunkType.equals("sBIT")) {
/* 471 */ PNGChunk chunk = readChunk(distream);
/* 472 */ parse_sBIT_chunk(chunk);
/* 473 */ } else if (chunkType.equals("sRGB")) {
/* 474 */ PNGChunk chunk = readChunk(distream);
/* 475 */ parse_sRGB_chunk(chunk);
/* 476 */ } else if (chunkType.equals("tEXt")) {
/* 477 */ PNGChunk chunk = readChunk(distream);
/* 478 */ parse_tEXt_chunk(chunk);
/* 479 */ } else if (chunkType.equals("tIME")) {
/* 480 */ PNGChunk chunk = readChunk(distream);
/* 481 */ parse_tIME_chunk(chunk);
/* 482 */ } else if (chunkType.equals("tRNS")) {
/* 483 */ PNGChunk chunk = readChunk(distream);
/* 484 */ parse_tRNS_chunk(chunk);
/* 485 */ } else if (chunkType.equals("zTXt")) {
/* 486 */ PNGChunk chunk = readChunk(distream);
/* 487 */ parse_zTXt_chunk(chunk);
/* */ } else {
/* 489 */ PNGChunk chunk = readChunk(distream);
/* */
/* 492 */ String type = chunk.getTypeString();
/* 493 */ byte[] data = chunk.getData();
/* 494 */ if (this.encodeParam != null) {
/* 495 */ this.encodeParam.addPrivateChunk(type, data);
/* */ }
/* 497 */ if (this.emitProperties) {
/* 498 */ String key = "chunk_" + this.chunkIndex++ + ":" + type;
/* 499 */ this.properties.put(key.toLowerCase(), data);
/* */ }
/* */ }
/* */ }
/* */ } catch (Exception e) { String message = JaiI18N.getString("PNGImageDecoder2");
/* 504 */ ImagingListenerProxy.errorOccurred(message, new ImagingException(message, e), this, false);
/* */ }
/* */
/* */ }
/* */
/* 516 */ if (this.significantBits == null) {