286287288289290291292293294295296297298299300
if ((chunks == null) || (chunks.isEmpty())) { return null; } final ImageMetadata result = new ImageMetadata(); for (PngChunk chunk : chunks) { final PngTextChunk textChunk = (PngTextChunk) chunk; result.add(textChunk.getKeyword(), textChunk.getText()); } return result; }
99100101102103104105106107108109
if (reader.readNextLine().length() != 0) { throw new ImageReadException("Not a valid HDR: Incorrect Header"); } metadata = new ImageMetadata(); String info = reader.readNextLine(); while (info.length() != 0) { final int equals = info.indexOf('=');