public class

PNGMetadataFormat

extends IIOMetadataFormatImpl
java.lang.Object
   ↳ javax.imageio.metadata.IIOMetadataFormatImpl
     ↳ com.sun.imageio.plugins.png.PNGMetadataFormat

Summary

[Expand]
Inherited Constants
From class javax.imageio.metadata.IIOMetadataFormatImpl
From interface javax.imageio.metadata.IIOMetadataFormat
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.
synchronized static IIOMetadataFormat getInstance()
[Expand]
Inherited Methods
From class javax.imageio.metadata.IIOMetadataFormatImpl
From class java.lang.Object
From interface javax.imageio.metadata.IIOMetadataFormat

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.

public static synchronized IIOMetadataFormat getInstance ()