public class NameTree
extends java.lang.Object
A name tree uses keys that are character strings to map to data objects. The strings can use a standard coding format, such as Unicode, are sorted in order in the data structure, and can be associated with any type of object.
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
void |
enumEntries(PDFObjectEnumProc enumProc)
Enumerates all the entries of this NameTree.
|
boolean |
equals(java.lang.Object rhs) |
PDFObject |
get(PDFString key)
Retrieves an entry from this NameTree.
|
PDFDict |
getPDFDict()
Return the PDFDict of this NameTree.
|
void |
put(PDFString key,
PDFObject value)
Puts a new entry in this NameTree.
|
void |
remove(PDFString key)
Removes the specified PDFObject from this NameTree.
|
public NameTree(Document doc)
public void delete()
public boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectpublic void put(PDFString key, PDFObject value)
key - The name of the PDFObject to put in the tree.value - The PDFObject to be associated with key.public PDFObject get(PDFString key)
key - The name of the PDFObject to get from the tree.public void remove(PDFString key)
key - The name of the PDFObject to remove from the tree.public void enumEntries(PDFObjectEnumProc enumProc)
This method does not enumerate invalid objects, which include objects that are defined as null, objects that are not defined at all (those having no cross-reference entry), and objects that are on the free list.
This re-raises any exception that enumProc raises.
enumProc - A user-supplied callback to call for each indirect object in dP. Enumeration ends when enumProc returns false or all indirect objects have been enumerated. The value parameter returned in enumProc is always null.public PDFDict getPDFDict()