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 intRepresents an undefined value of integer attributes. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGIFMetadata(boolean standardMetadataFormatSupported, String nativeMetadataFormatName, String nativeMetadataFormatClassName, String[] extraMetadataFormatNames, String[] extraMetadataFormatClassNames) -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidprotected static StringgetAttribute(Node node, String name) protected static StringgetAttribute(Node node, String name, String defaultValue, boolean required) protected static booleangetBooleanAttribute(Node node, String name) protected static booleangetBooleanAttribute(Node node, String name, boolean defaultValue, boolean required) protected byte[]getColorTable(Node colorTableNode, String entryNodeName, boolean lengthExpected, int expectedLength) protected static intgetEnumeratedAttribute(Node node, String name, String[] legalNames) protected static intgetEnumeratedAttribute(Node node, String name, String[] legalNames, int defaultValue, boolean required) protected static floatgetFloatAttribute(Node node, String name) protected static floatgetFloatAttribute(Node node, String name, float defaultValue, boolean required) protected static intgetIntAttribute(Node node, String name, boolean bounded, int min, int max) protected static intgetIntAttribute(Node node, String name, int defaultValue, boolean required, boolean bounded, int min, int max) protected static StringgetStringAttribute(Node node, String name, String defaultValue, boolean required, String[] range) protected abstract voidmergeNativeTree(Node root) protected abstract voidmergeStandardTree(Node root) voidMethods inherited from class 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:
mergeTreein 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
-