Example usage for javax.imageio.metadata IIOMetadata toString

List of usage examples for javax.imageio.metadata IIOMetadata toString

Introduction

In this page you can find the example usage for javax.imageio.metadata IIOMetadata toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

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);
    }//ww w  .ja v a2 s. c o  m
}