public class

JPEGImageMetadataFormat

extends IIOMetadataFormatImpl
java.lang.Object
   ↳ javax.imageio.metadata.IIOMetadataFormatImpl
     ↳ com.sun.imageio.plugins.jpeg.JPEGImageMetadataFormat

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()
Protected Methods
boolean isInSubtree(String elementName, String subtreeName)
Returns true if the named element occurs in the subtree of the format starting with the node named by subtreeName, including the node itself.
[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 ()

Protected Methods

protected boolean isInSubtree (String elementName, String subtreeName)

Returns true if the named element occurs in the subtree of the format starting with the node named by subtreeName, including the node itself. subtreeName may be any node in the format. If it is not, an IllegalArgumentException is thrown.