Class GIFMetadata
java.lang.Object
javax.imageio.metadata.IIOMetadata
com.github.jaiimageio.impl.plugins.gif.GIFMetadata
- Direct Known Subclasses:
GIFImageMetadata
,GIFStreamMetadata
Class which adds utility DOM element attribute access methods to
IIOMetadata
for subclass use.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
Represents an undefined value of integer attributes.Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, nativeMetadataFormatName, standardFormatSupported
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GIFMetadata
(boolean standardMetadataFormatSupported, String nativeMetadataFormatName, String nativeMetadataFormatClassName, String[] extraMetadataFormatNames, String[] extraMetadataFormatClassNames) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
protected static String
getAttribute
(Node node, String name) protected static String
getAttribute
(Node node, String name, String defaultValue, boolean required) protected static boolean
getBooleanAttribute
(Node node, String name) protected static boolean
getBooleanAttribute
(Node node, String name, boolean defaultValue, boolean required) protected byte[]
getColorTable
(Node colorTableNode, String entryNodeName, boolean lengthExpected, int expectedLength) protected static int
getEnumeratedAttribute
(Node node, String name, String[] legalNames) protected static int
getEnumeratedAttribute
(Node node, String name, String[] legalNames, int defaultValue, boolean required) protected static float
getFloatAttribute
(Node node, String name) protected static float
getFloatAttribute
(Node node, String name, float defaultValue, boolean required) protected static int
getIntAttribute
(Node node, String name, boolean bounded, int min, int max) protected static int
getIntAttribute
(Node node, String name, int defaultValue, boolean required, boolean bounded, int min, int max) protected static String
getStringAttribute
(Node node, String name, String defaultValue, boolean required, String[] range) protected abstract void
mergeNativeTree
(Node root) protected abstract void
mergeStandardTree
(Node root) void
Methods inherited from class javax.imageio.metadata.IIOMetadata
activateController, getAsTree, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardChromaNode, getStandardCompressionNode, getStandardDataNode, getStandardDimensionNode, getStandardDocumentNode, getStandardTextNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isReadOnly, isStandardMetadataFormatSupported, reset, setController, setFromTree
-
Field Details
-
UNDEFINED_INTEGER_VALUE
static final int UNDEFINED_INTEGER_VALUERepresents an undefined value of integer attributes.- See Also:
-
-
Constructor Details
-
GIFMetadata
-
-
Method Details
-
fatal
- Throws:
IIOInvalidTreeException
-
getStringAttribute
protected static String getStringAttribute(Node node, String name, String defaultValue, boolean required, String[] range) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getIntAttribute
protected static int getIntAttribute(Node node, String name, int defaultValue, boolean required, boolean bounded, int min, int max) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getFloatAttribute
protected static float getFloatAttribute(Node node, String name, float defaultValue, boolean required) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getIntAttribute
protected static int getIntAttribute(Node node, String name, boolean bounded, int min, int max) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getFloatAttribute
- Throws:
IIOInvalidTreeException
-
getBooleanAttribute
protected static boolean getBooleanAttribute(Node node, String name, boolean defaultValue, boolean required) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getBooleanAttribute
- Throws:
IIOInvalidTreeException
-
getEnumeratedAttribute
protected static int getEnumeratedAttribute(Node node, String name, String[] legalNames, int defaultValue, boolean required) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getEnumeratedAttribute
protected static int getEnumeratedAttribute(Node node, String name, String[] legalNames) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getAttribute
protected static String getAttribute(Node node, String name, String defaultValue, boolean required) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getAttribute
- Throws:
IIOInvalidTreeException
-
mergeTree
- Specified by:
mergeTree
in classIIOMetadata
- Throws:
IIOInvalidTreeException
-
getColorTable
protected byte[] getColorTable(Node colorTableNode, String entryNodeName, boolean lengthExpected, int expectedLength) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
mergeNativeTree
- Throws:
IIOInvalidTreeException
-
mergeStandardTree
- Throws:
IIOInvalidTreeException
-