Cloneable
public 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, setFromTree
protected 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 IIOMetadata
true
.public Node getAsTree(String formatName)
getAsTree
in class IIOMetadata
protected Node getNativeTree()
UnsupportedOperationException
.
Subclasses that supports formats other than standard metadata should override this method.UnsupportedOperationException
public void mergeTree(String formatName, Node root) throws IIOInvalidTreeException
mergeTree
in class IIOMetadata
IIOInvalidTreeException
public void reset()
reset
in class IIOMetadata
protected 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.