|
|||||||||
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.DocNode
edu.harvard.hul.ois.jhove.module.pdf.PageTreeNode
public class PageTreeNode
Class encapsulating a PDF page tree node. The page tree is built such that callers can walk through it by calling startWalk and then calling nextDocNode (for all nodes) or nextPageObject (for pages only) repeatedly.
Field Summary |
---|
Fields inherited from class edu.harvard.hul.ois.jhove.module.pdf.DocNode |
---|
_dict, _module, _pageObjectFlag, _parent, _walkFinished |
Constructor Summary | |
---|---|
PageTreeNode(PdfModule module,
PageTreeNode parent,
PdfDictionary dict)
Superclass constructor. |
Method Summary | |
---|---|
void |
buildSubtree(boolean toplevel,
int recGuard)
Builds the subtree of descendants of this node, using the Kids entry in the dictionary. |
void |
buildSubtree(boolean toplevel,
int recGuard,
int objNumber,
int genNumber)
Builds the subtree of descendants of this node, using the Kids entry in the dictionary. |
DocNode |
nextDocNode()
Get the next DocNode which is under this node. |
PageObject |
nextPageObject()
Get the next PageObject which is under this node. |
void |
startWalk()
Initialize an iterator through the descendants of this node. |
Methods inherited from class edu.harvard.hul.ois.jhove.module.pdf.DocNode |
---|
get, getDict, getFontResources, getMediaBox, getParent, getResources, isPageObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageTreeNode(PdfModule module, PageTreeNode 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 basedMethod Detail |
---|
public void buildSubtree(boolean toplevel, int recGuard) throws PdfException
PdfException
public void buildSubtree(boolean toplevel, int recGuard, int objNumber, int genNumber) throws PdfException
PdfException
public void startWalk()
startWalk
in class DocNode
public PageObject nextPageObject() throws PdfMalformedException
nextPageObject
in class DocNode
PdfMalformedException
public DocNode nextDocNode() throws PdfMalformedException
nextDocNode
in class DocNode
PdfMalformedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |