Cloneablepublic abstract class AbstractMetadata extends IIOMetadata implements Cloneable
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, nativeMetadataFormatName, standardFormatSupported| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractMetadata() |
|
protected |
AbstractMetadata(boolean standardFormatSupported,
String nativeFormatName,
String nativeFormatClassName,
String[] extraFormatNames,
String[] extraFormatClassNames) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
assertMutable() |
Asserts that this meta data is mutable.
|
Node |
getAsTree(String formatName) |
|
protected Node |
getNativeTree() |
Default implementation that throws
UnsupportedOperationException. |
boolean |
isReadOnly() |
Default implementation returns
true. |
void |
mergeTree(String formatName,
Node root) |
|
void |
reset() |
|
protected static String |
toListString(short[] values) |
|
protected void |
validateFormatName(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,
String nativeFormatName,
String nativeFormatClassName,
String[] extraFormatNames,
String[] extraFormatClassNames)
protected AbstractMetadata()
public boolean isReadOnly()
true.
Mutable subclasses should override this method.isReadOnly in class IIOMetadatatrue.public Node getAsTree(String formatName)
getAsTree in class IIOMetadataprotected Node getNativeTree()
UnsupportedOperationException.
Subclasses that supports formats other than standard metadata should override this method.UnsupportedOperationExceptionpublic void mergeTree(String formatName, Node root) throws IIOInvalidTreeException
mergeTree in class IIOMetadataIIOInvalidTreeExceptionpublic void reset()
reset in class IIOMetadataprotected final void assertMutable()
IllegalStateException - if isReadOnly() returns true.protected final void validateFormatName(String formatName)
protected static String toListString(short[] values)
Copyright © 2018. All rights reserved.