Package org.loboevolution.pdfview
Class NameTree
java.lang.Object
org.loboevolution.pdfview.NameTree
A PDF name tree consists of three kinds of nodes:
- The root node contains only a kids entry, pointing to many other objects
- An intermediate node contains the limits of all the children in its subtree, and a kids entry for each child
- A leaf node contains a set of name-to-object mappings in a dictionary, as well as the limits of the data contained in that child.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NameTree
Creates a new instance of NameTree- Parameters:
root
- aPDFObject
object.
-
-
Method Details
-
find
Find the PDF object corresponding to the given String in a name tree- Parameters:
key
- the key we are looking for in the name tree- Returns:
- the object associated with str, if found, or null if not
- Throws:
IOException
- if any.
-