|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.harvard.hul.ois.jhove.module.pdf.PageLabelNode
public class PageLabelNode
Class for nodes of a PDF number tree.
| Field Summary | |
|---|---|
protected PdfDictionary |
_dict
The dictionary which defines this node. |
protected PdfModule |
_module
The PdfModule this node is associated with. |
protected PageLabelNode |
_parent
The parent node of this node. |
protected boolean |
_walkFinished
Set to true when all subnodes of this node have been iterated through following a StartWalk. |
| Constructor Summary | |
|---|---|
PageLabelNode(PdfModule module,
PageLabelNode parent,
PdfDictionary dict)
Superclass constructor. |
|
| Method Summary | |
|---|---|
PdfObject |
_getCurrentValue()
Returns value associated with current key |
void |
buildSubtree()
Build the subtree of descendants of this node, using the Kids entry in the dictionary. |
boolean |
findNextKeyValue()
Obtain the next key-value pair from the tree. |
int |
getCurrentKey()
Returns key at current position in traversing tree |
int |
getPrevKey()
Returns key previously obtained in traversing tree |
PdfObject |
getPrevValue()
Returns value associated with key previously obtained in traversing tree |
static java.lang.String |
intToBase26(int n,
boolean upperCase)
A convenience method to turn integers into "letter" page numbers as defined for PDF. |
static java.lang.String |
intToRoman(int n,
boolean upperCase)
A convenience method to turn integers into Roman numerals, for the generation of page labels. |
PageLabelNode |
nextLeafObject()
Get the next leaf object which is under this node. |
void |
startWalk()
Initialize an iterator through the descendants of this node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PdfModule _module
protected PageLabelNode _parent
protected PdfDictionary _dict
protected boolean _walkFinished
| Constructor Detail |
|---|
public PageLabelNode(PdfModule module,
PageLabelNode parent,
PdfDictionary dict)
module - The PdfModule under which we're operatingparent - The parent node in the document tree;
may be null only for the root nodedict - The dictionary object on which this node
is based| Method Detail |
|---|
public void buildSubtree()
throws PdfException
PdfExceptionpublic void startWalk()
public PageLabelNode nextLeafObject()
public boolean findNextKeyValue()
throws PdfException
PdfExceptionpublic int getCurrentKey()
public PdfObject _getCurrentValue()
public int getPrevKey()
public PdfObject getPrevValue()
public static java.lang.String intToRoman(int n,
boolean upperCase)
public static java.lang.String intToBase26(int n,
boolean upperCase)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||