com.sun.pdfview

Class NameTree

public class NameTree extends Object

A PDF name tree consists of three kinds of nodes: A PDF name tree is sorted in accordance with the String.compareTo() method.
Constructor Summary
NameTree(PDFObject root)
Creates a new instance of NameTree
Method Summary
PDFObjectfind(String key)
Find the PDF object corresponding to the given String in a name tree

Constructor Detail

NameTree

public NameTree(PDFObject root)
Creates a new instance of NameTree

Method Detail

find

public PDFObject find(String key)
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