public class PdfNameTree extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
leafSize |
Constructor and Description |
---|
PdfNameTree() |
Modifier and Type | Method and Description |
---|---|
private static void |
iterateItems(PdfDictionary dic,
HashMap<String,PdfObject> items) |
static HashMap<String,PdfObject> |
readTree(PdfDictionary dic) |
static PdfDictionary |
writeTree(HashMap<String,? extends PdfObject> items,
PdfWriter writer)
Writes a name tree to a PdfWriter.
|
private static final int leafSize
public PdfNameTree()
public static PdfDictionary writeTree(HashMap<String,? extends PdfObject> items, PdfWriter writer) throws IOException
items
- the item of the name tree. The key is a String
and the value is a PdfObject
. Note that although the
keys are strings only the lower byte is used and no check is made for chars
with the same lower byte and different upper byte. This will generate a wrong
tree name.writer
- the writerIOException
- on errorprivate static void iterateItems(PdfDictionary dic, HashMap<String,PdfObject> items)
public static HashMap<String,PdfObject> readTree(PdfDictionary dic)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses