Top Fields Constructors Methods
com.sun.imageio.plugins.png

public Class PNGMetadataFormat

extends IIOMetadataFormatImpl
Class Inheritance
Imports
java.util.ArrayList, .Arrays, .List, .ListResourceBundle, javax.imageio.ImageTypeSpecifier, javax.imageio.metadata.IIOMetadataFormat, .IIOMetadataFormatImpl

Field Summary

Modifier and TypeField and Description
private static IIOMetadataFormat
private static String
private static String
private static String
private static String
private static String
private static String
private static String
private static String
private static String
private static String
Inherited from javax.imageio.metadata.IIOMetadataFormatImpl:
standardMetadataFormatName

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
canNodeAppear(String
the name of the element being queried.
elementName
,
ImageTypeSpecifier
an ImageTypeSpecifier indicating the type of the image that will be associated with the metadata.
imageType
)

Implements abstract javax.imageio.metadata.IIOMetadataFormatImpl.canNodeAppear.

Implements javax.imageio.metadata.IIOMetadataFormat.canNodeAppear.

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.

public static synchronized IIOMetadataFormat
Inherited from javax.imageio.metadata.IIOMetadataFormatImpl:
addAttributeaddAttributeaddAttributeaddAttributeaddBooleanAttributeaddChildElementaddElementaddElementaddObjectValueaddObjectValueaddObjectValueaddObjectValuegetAttributeDataTypegetAttributeDefaultValuegetAttributeDescriptiongetAttributeEnumerationsgetAttributeListMaxLengthgetAttributeListMinLengthgetAttributeMaxValuegetAttributeMinValuegetAttributeNamesgetAttributeValueTypegetChildNamesgetChildPolicygetElementDescriptiongetElementMaxChildrengetElementMinChildrengetObjectArrayMaxLengthgetObjectArrayMinLengthgetObjectClassgetObjectDefaultValuegetObjectEnumerationsgetObjectMaxValuegetObjectMinValuegetObjectValueTypegetResourceBaseNamegetRootNamegetStandardFormatInstanceisAttributeRequiredremoveAttributeremoveElementremoveObjectValuesetResourceBaseName

Field Detail

instanceback to summary
private static IIOMetadataFormat instance
VALUE_0back to summary
private static String VALUE_0
VALUE_1back to summary
private static String VALUE_1
VALUE_12back to summary
private static String VALUE_12
VALUE_23back to summary
private static String VALUE_23
VALUE_255back to summary
private static String VALUE_255
VALUE_31back to summary
private static String VALUE_31
VALUE_59back to summary
private static String VALUE_59
VALUE_60back to summary
private static String VALUE_60
VALUE_MAX_16back to summary
private static String VALUE_MAX_16
VALUE_MAX_32back to summary
private static String VALUE_MAX_32

Constructor Detail

PNGMetadataFormatback to summary
private PNGMetadataFormat()

Method Detail

canNodeAppearback to summary
public boolean canNodeAppear(String elementName, ImageTypeSpecifier imageType)

Implements abstract javax.imageio.metadata.IIOMetadataFormatImpl.canNodeAppear.

Implements javax.imageio.metadata.IIOMetadataFormat.canNodeAppear.

Doc from javax.imageio.metadata.IIOMetadataFormat.canNodeAppear.

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:String

the name of the element being queried.

imageType:ImageTypeSpecifier

an ImageTypeSpecifier indicating the type of the image that will be associated with the metadata.

Returns:boolean

true if the node is meaningful for images of the given type.

getInstanceback to summary
public static synchronized IIOMetadataFormat getInstance()