public abstract class AbstractMetadata
extends javax.imageio.metadata.IIOMetadata
implements java.lang.Cloneable
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMetadata() |
protected |
AbstractMetadata(boolean standardFormatSupported,
java.lang.String nativeFormatName,
java.lang.String nativeFormatClassName,
java.lang.String[] extraFormatNames,
java.lang.String[] extraFormatClassNames) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertMutable()
Asserts that this meta data is mutable.
|
org.w3c.dom.Node |
getAsTree(java.lang.String formatName) |
protected org.w3c.dom.Node |
getNativeTree()
Default implementation that throws
UnsupportedOperationException. |
boolean |
isReadOnly()
Default implementation returns
true. |
void |
mergeTree(java.lang.String formatName,
org.w3c.dom.Node root) |
void |
reset() |
protected static java.lang.String |
toListString(short[] values) |
protected void |
validateFormatName(java.lang.String formatName) |
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardChromaNode, getStandardCompressionNode, getStandardDataNode, getStandardDimensionNode, getStandardDocumentNode, getStandardTextNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTreeprotected AbstractMetadata(boolean standardFormatSupported,
java.lang.String nativeFormatName,
java.lang.String nativeFormatClassName,
java.lang.String[] extraFormatNames,
java.lang.String[] extraFormatClassNames)
protected AbstractMetadata()
public boolean isReadOnly()
true.
Mutable subclasses should override this method.isReadOnly in class javax.imageio.metadata.IIOMetadatatrue.public org.w3c.dom.Node getAsTree(java.lang.String formatName)
getAsTree in class javax.imageio.metadata.IIOMetadataprotected org.w3c.dom.Node getNativeTree()
UnsupportedOperationException.
Subclasses that supports formats other than standard metadata should override this method.java.lang.UnsupportedOperationExceptionpublic void mergeTree(java.lang.String formatName,
org.w3c.dom.Node root)
throws javax.imageio.metadata.IIOInvalidTreeException
mergeTree in class javax.imageio.metadata.IIOMetadatajavax.imageio.metadata.IIOInvalidTreeExceptionpublic void reset()
reset in class javax.imageio.metadata.IIOMetadataprotected final void assertMutable()
java.lang.IllegalStateException - if isReadOnly() returns true.protected final void validateFormatName(java.lang.String formatName)
protected static java.lang.String toListString(short[] values)
Copyright © 2018. All Rights Reserved.