public class

StandardMetadataFormat

extends IIOMetadataFormatImpl
java.lang.Object
   ↳ javax.imageio.metadata.IIOMetadataFormatImpl
     ↳ com.sun.imageio.plugins.common.StandardMetadataFormat

Summary

[Expand]
Inherited Constants
From class javax.imageio.metadata.IIOMetadataFormatImpl
From interface javax.imageio.metadata.IIOMetadataFormat
Public Constructors
StandardMetadataFormat()
Public Methods
boolean canNodeAppear(String elementName, ImageTypeSpecifier imageType)
Returns true if the element (and the subtree below it) is allowed to appear in a metadata document for an image of the given type, defined by an ImageTypeSpecifier.
[Expand]
Inherited Methods
From class javax.imageio.metadata.IIOMetadataFormatImpl
From class java.lang.Object
From interface javax.imageio.metadata.IIOMetadataFormat

Public Constructors

public StandardMetadataFormat ()

Public Methods

public boolean canNodeAppear (String elementName, ImageTypeSpecifier imageType)

Returns true if the element (and the subtree below it) is allowed to appear in a metadata document for an image of the given type, defined by an ImageTypeSpecifier. For example, a metadata document format might contain an element that describes the primary colors of the image, which would not be allowed when writing a grayscale image.

Parameters
elementName the name of the element being queried.
imageType an ImageTypeSpecifier indicating the type of the image that will be associated with the metadata.
Returns
  • true if the node is meaningful for images of the given type.