public class TIFFImageMetadata extends IIOMetadata
Modifier and Type | Field and Description |
---|---|
private static String[] |
colorSpaceNames |
static String |
nativeMetadataFormatClassName |
static String |
nativeMetadataFormatName |
private static String[] |
orientationNames |
(package private) TIFFIFD |
rootIFD |
(package private) List |
tagSets |
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, standardFormatSupported
Constructor and Description |
---|
TIFFImageMetadata(List tagSets) |
TIFFImageMetadata(TIFFIFD ifd) |
Modifier and Type | Method and Description |
---|---|
void |
addShortOrLongField(int tagNumber,
int value) |
private static void |
fatal(Node node,
String reason) |
Node |
getAsTree(String formatName) |
private static String |
getAttribute(Node node,
String attrName) |
private Node |
getChildNode(Node node,
String childName) |
private Node |
getIFDAsTree(TIFFIFD ifd,
String parentTagName,
int parentTagNumber) |
private Node |
getNativeTree() |
TIFFIFD |
getRootIFD() |
TIFFImageMetadata |
getShallowClone()
Returns a
TIFFImageMetadata wherein all fields in the
root IFD from the BaselineTIFFTagSet are copied by value
and all other fields copied by reference. |
IIOMetadataNode |
getStandardChromaNode() |
IIOMetadataNode |
getStandardCompressionNode() |
IIOMetadataNode |
getStandardDataNode() |
IIOMetadataNode |
getStandardDimensionNode() |
IIOMetadataNode |
getStandardDocumentNode() |
IIOMetadataNode |
getStandardTextNode() |
IIOMetadataNode |
getStandardTransparencyNode() |
TIFFField |
getTIFFField(int tagNumber) |
void |
initializeFromStream(ImageInputStream stream,
boolean ignoreUnknownFields) |
boolean |
isReadOnly() |
private char[] |
listToCharArray(String list) |
private int[] |
listToIntArray(String list) |
private void |
mergeNativeTree(Node root) |
private void |
mergeStandardTree(Node root) |
void |
mergeTree(String formatName,
Node root) |
static TIFFIFD |
parseIFD(Node node) |
void |
removeTIFFField(int tagNumber) |
private String |
repeat(String s,
int times) |
void |
reset() |
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardTileNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTree
public static final String nativeMetadataFormatName
public static final String nativeMetadataFormatClassName
List tagSets
TIFFIFD rootIFD
private static final String[] colorSpaceNames
private static final String[] orientationNames
public TIFFImageMetadata(List tagSets)
public TIFFImageMetadata(TIFFIFD ifd)
public void initializeFromStream(ImageInputStream stream, boolean ignoreUnknownFields) throws IOException
IOException
public void addShortOrLongField(int tagNumber, int value)
public boolean isReadOnly()
isReadOnly
in class IIOMetadata
public Node getAsTree(String formatName)
getAsTree
in class IIOMetadata
private Node getNativeTree()
public IIOMetadataNode getStandardChromaNode()
getStandardChromaNode
in class IIOMetadata
public IIOMetadataNode getStandardCompressionNode()
getStandardCompressionNode
in class IIOMetadata
public IIOMetadataNode getStandardDataNode()
getStandardDataNode
in class IIOMetadata
public IIOMetadataNode getStandardDimensionNode()
getStandardDimensionNode
in class IIOMetadata
public IIOMetadataNode getStandardDocumentNode()
getStandardDocumentNode
in class IIOMetadata
public IIOMetadataNode getStandardTextNode()
getStandardTextNode
in class IIOMetadata
public IIOMetadataNode getStandardTransparencyNode()
getStandardTransparencyNode
in class IIOMetadata
private static void fatal(Node node, String reason) throws IIOInvalidTreeException
IIOInvalidTreeException
private int[] listToIntArray(String list)
private char[] listToCharArray(String list)
private void mergeStandardTree(Node root) throws IIOInvalidTreeException
IIOInvalidTreeException
public static TIFFIFD parseIFD(Node node) throws IIOInvalidTreeException
IIOInvalidTreeException
private void mergeNativeTree(Node root) throws IIOInvalidTreeException
IIOInvalidTreeException
public void mergeTree(String formatName, Node root) throws IIOInvalidTreeException
mergeTree
in class IIOMetadata
IIOInvalidTreeException
public void reset()
reset
in class IIOMetadata
public TIFFIFD getRootIFD()
public TIFFField getTIFFField(int tagNumber)
public void removeTIFFField(int tagNumber)
public TIFFImageMetadata getShallowClone()
TIFFImageMetadata
wherein all fields in the
root IFD from the BaselineTIFFTagSet
are copied by value
and all other fields copied by reference.Copyright © 2015 Open Microscopy Environment