Class TIFFImageMetadata
java.lang.Object
javax.imageio.metadata.IIOMetadata
com.twelvemonkeys.imageio.AbstractMetadata
com.twelvemonkeys.imageio.plugins.tiff.TIFFImageMetadata
- All Implemented Interfaces:
Cloneable
public final class TIFFImageMetadata
extends com.twelvemonkeys.imageio.AbstractMetadata
TIFFImageMetadata.
- Version:
- $Id: TIFFImageMetadata.java,v 1.0 17/04/15 harald.kuhr Exp$
- Author:
- Harald Kuhr, last modified by $Author: harald.kuhr$
-
Field Summary
Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, nativeMetadataFormatName, standardFormatSupported
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty TIFF metadata object.TIFFImageMetadata
(com.twelvemonkeys.imageio.metadata.Directory ifd) Creates a TIFF metadata object, using the values from the given IFD.TIFFImageMetadata
(Collection<? extends com.twelvemonkeys.imageio.metadata.Entry> entries) Creates a TIFF metadata object, using the values from the given entries. -
Method Summary
Modifier and TypeMethodDescriptionprotected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
com.twelvemonkeys.imageio.metadata.Entry
getTIFFField
(int tagNumber) Returns an Entry which contains the data of the requested TIFF field.boolean
void
void
reset()
void
setFromTree
(String formatName, Node root) Methods inherited from class com.twelvemonkeys.imageio.AbstractMetadata
assertMutable, getAsTree, toListString, validateFormatName
Methods inherited from class javax.imageio.metadata.IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardTree, hasController, isStandardMetadataFormatSupported, setController
-
Constructor Details
-
TIFFImageMetadata
public TIFFImageMetadata()Creates an empty TIFF metadata object. Client code can update or change the metadata using thesetFromTree(String, Node)
ormergeTree(String, Node)
methods. -
TIFFImageMetadata
public TIFFImageMetadata(com.twelvemonkeys.imageio.metadata.Directory ifd) Creates a TIFF metadata object, using the values from the given IFD. Client code can update or change the metadata using thesetFromTree(String, Node)
ormergeTree(String, Node)
methods. -
TIFFImageMetadata
Creates a TIFF metadata object, using the values from the given entries. Client code can update or change the metadata using thesetFromTree(String, Node)
ormergeTree(String, Node)
methods.
-
-
Method Details
-
getNativeTree
- Overrides:
getNativeTree
in classcom.twelvemonkeys.imageio.AbstractMetadata
-
getStandardChromaNode
- Overrides:
getStandardChromaNode
in classIIOMetadata
-
getStandardCompressionNode
- Overrides:
getStandardCompressionNode
in classIIOMetadata
-
getStandardDataNode
- Overrides:
getStandardDataNode
in classIIOMetadata
-
getStandardDimensionNode
- Overrides:
getStandardDimensionNode
in classIIOMetadata
-
getStandardTransparencyNode
- Overrides:
getStandardTransparencyNode
in classIIOMetadata
-
getStandardDocumentNode
- Overrides:
getStandardDocumentNode
in classIIOMetadata
-
getStandardTextNode
- Overrides:
getStandardTextNode
in classIIOMetadata
-
getStandardTileNode
- Overrides:
getStandardTileNode
in classIIOMetadata
-
isReadOnly
public boolean isReadOnly()- Overrides:
isReadOnly
in classcom.twelvemonkeys.imageio.AbstractMetadata
-
setFromTree
- Overrides:
setFromTree
in classIIOMetadata
- Throws:
IIOInvalidTreeException
-
mergeTree
- Overrides:
mergeTree
in classcom.twelvemonkeys.imageio.AbstractMetadata
- Throws:
IIOInvalidTreeException
-
reset
public void reset()- Overrides:
reset
in classcom.twelvemonkeys.imageio.AbstractMetadata
-
getTIFFField
public com.twelvemonkeys.imageio.metadata.Entry getTIFFField(int tagNumber) Returns an Entry which contains the data of the requested TIFF field.- Parameters:
tagNumber
- Tag number of the TIFF field.- Returns:
- the TIFF field, or null.
-