public class XfaTreeNode extends FormTreeNode implements OutputStreamResource
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
BOUNDARY_END
End sequence of an artificial boundary between XFA fragments added by RUPS
|
static byte[] |
BOUNDARY_MIDDLE
Middle sequence of an artificial boundary between XFA fragments added by RUPS
|
static byte[] |
BOUNDARY_START
Start sequence of an artificial boundary between XFA fragments added by RUPS
|
object_nodeiconallowsChildren, EMPTY_ENUMERATION, children, parent, userObject| Constructor and Description |
|---|
XfaTreeNode(PdfObjectTreeNode xfa)
Creates the root node of the XFA tree.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPacket(String key,
PdfObjectTreeNode value)
Adds a child node to the XFA root.
|
void |
writeTo(OutputStream os)
Writes (part of) the XFA resource to an OutputStream.
|
getCorrespondingPdfObjectNodegetIconadd, breadthFirstEnumeration, clone, depthFirstEnumeration, getAllowsChildren, getDepth, getFirstChild, getFirstLeaf, getChildAfter, getChildAt, getChildBefore, getChildCount, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, children, insert, isLeaf, isNodeAncestor, isNodeDescendant, isNodeChild, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringpublic static final byte[] BOUNDARY_START
public static final byte[] BOUNDARY_MIDDLE
public static final byte[] BOUNDARY_END
public XfaTreeNode(PdfObjectTreeNode xfa)
xfa - the XFA node in the PdfTree (a child of the AcroForm node in the PDF catalog)public void writeTo(OutputStream os) throws IOException
null, the complete resource is written;
if key refers to an individual package, this package only is
written to the OutputStream.writeTo in interface OutputStreamResourceos - the OutputStream to which the XML is written.IOException - usual exception when there's a problem writing to an OutputStreampublic void addPacket(String key, PdfObjectTreeNode value)
key - the name of the packetvalue - the corresponding stream node in the PdfTreeCopyright © 2015. All rights reserved.