Class GIFStreamMetadata
java.lang.Object
javax.imageio.metadata.IIOMetadata
com.sun.media.imageioimpl.plugins.gif.GIFStreamMetadata
- Version:
- 0.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintstatic final String[]byte[]intintintbooleanstatic final String[]Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGIFStreamMetadata(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) booleanprotected voidmergeNativeTree(Node root) protected voidmergeStandardTree(Node root) voidvoidreset()voidsetFromTree(String formatName, Node root) Methods inherited from class javax.imageio.metadata.IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardTileNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController
-
Field Details
-
versionStrings
-
version
-
logicalScreenWidth
public int logicalScreenWidth -
logicalScreenHeight
public int logicalScreenHeight -
colorResolution
public int colorResolution -
pixelAspectRatio
public int pixelAspectRatio -
backgroundColorIndex
public int backgroundColorIndex -
sortFlag
public boolean sortFlag -
colorTableSizes
-
globalColorTable
public byte[] globalColorTable
-
-
Constructor Details
-
GIFStreamMetadata
-
GIFStreamMetadata
public GIFStreamMetadata()
-
-
Method Details
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classIIOMetadata
-
getAsTree
- Specified by:
getAsTreein classIIOMetadata
-
getStandardChromaNode
- Overrides:
getStandardChromaNodein classIIOMetadata
-
getStandardCompressionNode
- Overrides:
getStandardCompressionNodein classIIOMetadata
-
getStandardDataNode
- Overrides:
getStandardDataNodein classIIOMetadata
-
getStandardDimensionNode
- Overrides:
getStandardDimensionNodein classIIOMetadata
-
getStandardDocumentNode
- Overrides:
getStandardDocumentNodein classIIOMetadata
-
getStandardTextNode
- Overrides:
getStandardTextNodein classIIOMetadata
-
getStandardTransparencyNode
- Overrides:
getStandardTransparencyNodein classIIOMetadata
-
setFromTree
- Overrides:
setFromTreein classIIOMetadata- Throws:
IIOInvalidTreeException
-
mergeNativeTree
- Throws:
IIOInvalidTreeException
-
mergeStandardTree
- Throws:
IIOInvalidTreeException
-
reset
public void reset()- Specified by:
resetin classIIOMetadata
-
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
-