Class AbstractMetadata
java.lang.Object
javax.imageio.metadata.IIOMetadata
com.twelvemonkeys.imageio.AbstractMetadata
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
BMPMetadata, JPEGImage10Metadata, PSDMetadata, StandardImageMetadataSupport, TIFFImageMetadata
AbstractMetadata
- Version:
- $Id: AbstractMetadata.java,v 1.0 Nov 13, 2009 1:02:12 AM haraldk Exp$
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractMetadata(boolean standardFormatSupported, String nativeFormatName, String nativeFormatClassName, String[] extraFormatNames, String[] extraFormatClassNames) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidAsserts that this meta data is mutable.protected NodeDefault implementation that throwsUnsupportedOperationException.booleanDefault implementation returnstrue.voidvoidreset()protected static StringtoListString(short[] values) protected final voidvalidateFormatName(String formatName) Methods inherited from class 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:
isReadOnlyin classIIOMetadata- Returns:
true.
-
getAsTree
- Specified by:
getAsTreein classIIOMetadata
-
getNativeTree
Default implementation that throwsUnsupportedOperationException. Subclasses that supports formats other than standard metadata should override this method.- Throws:
UnsupportedOperationException
-
mergeTree
- Specified by:
mergeTreein classIIOMetadata- Throws:
IIOInvalidTreeException
-
reset
public void reset()- Specified by:
resetin classIIOMetadata
-
assertMutable
protected final void assertMutable()Asserts that this meta data is mutable.- Throws:
IllegalStateException- ifisReadOnly()returnstrue.
-
validateFormatName
-
toListString
-