List of usage examples for javax.imageio ImageReader getImageMetadata
public IIOMetadata getImageMetadata(int imageIndex, String formatName, Set<String> nodeNames) throws IOException
From source file:org.photovault.image.ImageIOImage.java
private void readImageMetadata(ImageReader reader) throws IOException { Set<String> nodes = new HashSet<String>(); nodes.add("unknown"); IIOMetadata iioMetadata = reader.getImageMetadata(0, "javax_imageio_jpeg_image_1.0", nodes); if (iioMetadata != null) { Node tree = iioMetadata.getAsTree("javax_imageio_jpeg_image_1.0"); log.debug("read metadata: " + iioMetadata.toString()); this.parseJPEGMetadata((IIOMetadataNode) tree); }// w w w .ja v a 2 s. c o m }