Top Description Fields Constructors Methods
com.sun.imageio.plugins.tiff

public Class TIFFFieldNode

extends IIOMetadataNode
Class Inheritance
Imports
java.util.Arrays, .List, javax.imageio.metadata.IIOMetadataNode, org.w3c.dom.Node, javax.imageio.plugins.tiff.TIFFDirectory, .TIFFField, .TIFFTag, .TIFFTagSet

The Node representation of a TIFFField wherein the child node is procedural rather than buffered.

Field Summary

Modifier and TypeField and Description
private TIFFField
private boolean
private Boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Node
appendChild(Node
the Node to insert.
newChild
)

Overrides javax.imageio.metadata.IIOMetadataNode.appendChild.

Implements org.w3c.dom.Node.appendChild.

Adds the node newChild to the end of the list of children of this node.

public Node
cloneNode(boolean
if true, recursively clone the subtree under the specified node; if false, clone only the node itself.
deep
)

Overrides javax.imageio.metadata.IIOMetadataNode.cloneNode.

Implements org.w3c.dom.Node.cloneNode.

Returns a duplicate of this node.

public Node
getFirstChild()

Overrides javax.imageio.metadata.IIOMetadataNode.getFirstChild.

Implements org.w3c.dom.Node.getFirstChild.

Returns the first child of this node, or null if the node has no children.

public Node
getLastChild()

Overrides javax.imageio.metadata.IIOMetadataNode.getLastChild.

Implements org.w3c.dom.Node.getLastChild.

Returns the last child of this node, or null if the node has no children.

public int
getLength()

Overrides javax.imageio.metadata.IIOMetadataNode.getLength.

Implements org.w3c.dom.NodeList.getLength.

The number of nodes in the list.

public Node
getNextSibling()

Overrides javax.imageio.metadata.IIOMetadataNode.getNextSibling.

Implements org.w3c.dom.Node.getNextSibling.

Returns the next sibling of this node, or null if the node has no next sibling.

private static String
public Node
getPreviousSibling()

Overrides javax.imageio.metadata.IIOMetadataNode.getPreviousSibling.

Implements org.w3c.dom.Node.getPreviousSibling.

Returns the previous sibling of this node, or null if this node has no previous sibling.

public boolean
hasChildNodes()

Overrides javax.imageio.metadata.IIOMetadataNode.hasChildNodes.

Implements org.w3c.dom.Node.hasChildNodes.

Returns true if this node has child nodes.

private synchronized void
public Node
insertBefore(Node
the Node to insert.
newChild
,
Node
the reference Node.
refChild
)

Overrides javax.imageio.metadata.IIOMetadataNode.insertBefore.

Implements org.w3c.dom.Node.insertBefore.

Inserts the node newChild before the existing child node refChild.

private static boolean
public Node
removeChild(Node
the Node to be removed.
oldChild
)

Overrides javax.imageio.metadata.IIOMetadataNode.removeChild.

Implements org.w3c.dom.Node.removeChild.

Removes the child node indicated by oldChild from the list of children, and returns it.

public Node
replaceChild(Node
the Node to insert.
newChild
,
Node
the Node to be replaced.
oldChild
)

Overrides javax.imageio.metadata.IIOMetadataNode.replaceChild.

Implements org.w3c.dom.Node.replaceChild.

Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Inherited from javax.imageio.metadata.IIOMetadataNode:
compareDocumentPositiongetAttributegetAttributeNodegetAttributeNodeNSgetAttributeNSgetAttributesgetBaseURIgetChildNodesgetElementsByTagNamegetElementsByTagNameNSgetFeaturegetLocalNamegetNamespaceURIgetNodeNamegetNodeTypegetNodeValuegetOwnerDocumentgetParentNodegetPrefixgetSchemaTypeInfogetTagNamegetTextContentgetUserDatagetUserObjecthasAttributehasAttributeNShasAttributesisDefaultNamespaceisEqualNodeisSameNodeisSupporteditemlookupNamespaceURIlookupPrefixnormalizeremoveAttributeremoveAttributeNoderemoveAttributeNSsetAttributesetAttributeNodesetAttributeNodeNSsetAttributeNSsetIdAttributesetIdAttributeNodesetIdAttributeNSsetNodeValuesetPrefixsetTextContentsetUserDatasetUserObject

Field Detail

fieldback to summary
private TIFFField field
isIFDback to summary
private boolean isIFD
isInitializedback to summary
private Boolean isInitialized

Constructor Detail

TIFFFieldNodeback to summary
public TIFFFieldNode(TIFFField field)

Method Detail

appendChildback to summary
public Node appendChild(Node newChild)

Overrides javax.imageio.metadata.IIOMetadataNode.appendChild.

Implements org.w3c.dom.Node.appendChild.

Doc from javax.imageio.metadata.IIOMetadataNode.appendChild.

Adds the node newChild to the end of the list of children of this node.

Parameters
newChild:Node

the Node to insert.

Returns:Node

the node added.

cloneNodeback to summary
public Node cloneNode(boolean deep)

Overrides javax.imageio.metadata.IIOMetadataNode.cloneNode.

Implements org.w3c.dom.Node.cloneNode.

Doc from javax.imageio.metadata.IIOMetadataNode.cloneNode.

Returns a duplicate of this node. The duplicate node has no parent (getParentNode returns null). If a shallow clone is being performed (deep is false), the new node will not have any children or siblings. If a deep clone is being performed, the new node will form the root of a complete cloned subtree.

Parameters
deep:boolean

if true, recursively clone the subtree under the specified node; if false, clone only the node itself.

Returns:Node

the duplicate node.

getFirstChildback to summary
public Node getFirstChild()

Overrides javax.imageio.metadata.IIOMetadataNode.getFirstChild.

Implements org.w3c.dom.Node.getFirstChild.

Doc from javax.imageio.metadata.IIOMetadataNode.getFirstChild.

Returns the first child of this node, or null if the node has no children.

Returns:Node

the first child, as a Node, or null

getLastChildback to summary
public Node getLastChild()

Overrides javax.imageio.metadata.IIOMetadataNode.getLastChild.

Implements org.w3c.dom.Node.getLastChild.

Doc from javax.imageio.metadata.IIOMetadataNode.getLastChild.

Returns the last child of this node, or null if the node has no children.

Returns:Node

the last child, as a Node, or null.

getLengthback to summary
public int getLength()

Overrides javax.imageio.metadata.IIOMetadataNode.getLength.

Implements org.w3c.dom.NodeList.getLength.

Doc from org.w3c.dom.NodeList.getLength.

The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.

getNextSiblingback to summary
public Node getNextSibling()

Overrides javax.imageio.metadata.IIOMetadataNode.getNextSibling.

Implements org.w3c.dom.Node.getNextSibling.

Doc from javax.imageio.metadata.IIOMetadataNode.getNextSibling.

Returns the next sibling of this node, or null if the node has no next sibling.

Returns:Node

the next sibling, as a Node, or null.

getNodeNameback to summary
private static String getNodeName(TIFFField f)
getPreviousSiblingback to summary
public Node getPreviousSibling()

Overrides javax.imageio.metadata.IIOMetadataNode.getPreviousSibling.

Implements org.w3c.dom.Node.getPreviousSibling.

Doc from javax.imageio.metadata.IIOMetadataNode.getPreviousSibling.

Returns the previous sibling of this node, or null if this node has no previous sibling.

Returns:Node

the previous sibling, as a Node, or null.

hasChildNodesback to summary
public boolean hasChildNodes()

Overrides javax.imageio.metadata.IIOMetadataNode.hasChildNodes.

Implements org.w3c.dom.Node.hasChildNodes.

Doc from javax.imageio.metadata.IIOMetadataNode.hasChildNodes.

Returns true if this node has child nodes.

Returns:boolean

true if this node has children.

initializeback to summary
private synchronized void initialize()
insertBeforeback to summary
public Node insertBefore(Node newChild, Node refChild)

Overrides javax.imageio.metadata.IIOMetadataNode.insertBefore.

Implements org.w3c.dom.Node.insertBefore.

Doc from javax.imageio.metadata.IIOMetadataNode.insertBefore.

Inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children.

Parameters
newChild:Node

the Node to insert.

refChild:Node

the reference Node.

Returns:Node

the node being inserted.

isIFDback to summary
private static boolean isIFD(TIFFField f)
removeChildback to summary
public Node removeChild(Node oldChild)

Overrides javax.imageio.metadata.IIOMetadataNode.removeChild.

Implements org.w3c.dom.Node.removeChild.

Doc from javax.imageio.metadata.IIOMetadataNode.removeChild.

Removes the child node indicated by oldChild from the list of children, and returns it.

Parameters
oldChild:Node

the Node to be removed.

Returns:Node

the node removed.

replaceChildback to summary
public Node replaceChild(Node newChild, Node oldChild)

Overrides javax.imageio.metadata.IIOMetadataNode.replaceChild.

Implements org.w3c.dom.Node.replaceChild.

Doc from javax.imageio.metadata.IIOMetadataNode.replaceChild.

Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

Parameters
newChild:Node

the Node to insert.

oldChild:Node

the Node to be replaced.

Returns:Node

the node replaced.