public class PdfNameTree
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
leafSize |
private static StringCompare |
stringCompare |
Constructor and Description |
---|
PdfNameTree() |
Modifier and Type | Method and Description |
---|---|
private static void |
iterateItems(PdfDictionary dic,
java.util.HashMap items) |
static java.util.HashMap |
readTree(PdfDictionary dic) |
static PdfDictionary |
writeTree(java.util.HashMap items,
PdfWriter writer)
Creates a name tree.
|
private static final int leafSize
private static final StringCompare stringCompare
public static PdfDictionary writeTree(java.util.HashMap items, PdfWriter writer) throws java.io.IOException
items
- the item of the name tree. The key is a String
and the value is a PdfIndirectReference
. 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 writerjava.io.IOException
- on errorprivate static void iterateItems(PdfDictionary dic, java.util.HashMap items)
public static java.util.HashMap readTree(PdfDictionary dic)