com.itextpdf.text.pdf
Class PdfNumberTree

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfNumberTree

public class PdfNumberTree
extends Object

Creates a number tree.

Author:
Paulo Soares

Field Summary
private static int leafSize
           
 
Constructor Summary
PdfNumberTree()
           
 
Method Summary
private static void iterateItems(PdfDictionary dic, HashMap<Integer,PdfObject> items)
           
static HashMap<Integer,PdfObject> readTree(PdfDictionary dic)
           
static
<O extends PdfObject>
PdfDictionary
writeTree(HashMap<Integer,O> items, PdfWriter writer)
          Creates a number tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

leafSize

private static final int leafSize
See Also:
Constant Field Values
Constructor Detail

PdfNumberTree

public PdfNumberTree()
Method Detail

writeTree

public static <O extends PdfObject> PdfDictionary writeTree(HashMap<Integer,O> items,
                                                            PdfWriter writer)
                               throws IOException
Creates a number tree.

Parameters:
items - the item of the number tree. The key is an Integer and the value is a PdfObject.
writer - the writer
Returns:
the dictionary with the number tree.
Throws:
IOException - on error

iterateItems

private static void iterateItems(PdfDictionary dic,
                                 HashMap<Integer,PdfObject> items)

readTree

public static HashMap<Integer,PdfObject> readTree(PdfDictionary dic)

Hosted by Hostbasket