Package com.twelvemonkeys.imageio
Class AbstractMetadata
java.lang.Object
javax.imageio.metadata.IIOMetadata
com.twelvemonkeys.imageio.AbstractMetadata
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
StandardImageMetadataSupport
AbstractMetadata
- Version:
- $Id: AbstractMetadata.java,v 1.0 Nov 13, 2009 1:02:12 AM haraldk Exp$
- Author:
- Harald Kuhr, last modified by $Author: haraldk$
-
Field Summary
Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, nativeMetadataFormatName, standardFormatSupported
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
AbstractMetadata
(boolean standardFormatSupported, String nativeFormatName, String nativeFormatClassName, String[] extraFormatNames, String[] extraFormatClassNames) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
Asserts that this meta data is mutable.protected Node
Default implementation that throwsUnsupportedOperationException
.boolean
Default implementation returnstrue
.void
void
reset()
protected static String
toListString
(short[] values) protected final void
validateFormatName
(String formatName) Methods inherited from class javax.imageio.metadata.IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardChromaNode, getStandardCompressionNode, getStandardDataNode, getStandardDimensionNode, getStandardDocumentNode, getStandardTextNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTree
-
Constructor Details
-
AbstractMetadata
-
AbstractMetadata
protected AbstractMetadata()
-
-
Method Details
-
isReadOnly
public boolean isReadOnly()Default implementation returnstrue
. Mutable subclasses should override this method.- Specified by:
isReadOnly
in classIIOMetadata
- Returns:
true
.
-
getAsTree
- Specified by:
getAsTree
in classIIOMetadata
-
getNativeTree
Default implementation that throwsUnsupportedOperationException
. Subclasses that supports formats other than standard metadata should override this method.- Throws:
UnsupportedOperationException
-
mergeTree
- Specified by:
mergeTree
in classIIOMetadata
- Throws:
IIOInvalidTreeException
-
reset
public void reset()- Specified by:
reset
in classIIOMetadata
-
assertMutable
protected final void assertMutable()Asserts that this meta data is mutable.- Throws:
IllegalStateException
- ifisReadOnly()
returnstrue
.
-
validateFormatName
-
toListString
-