| 
 | |||||||||
| 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
public abstract class DocNode
Abstract class for nodes of a PDF document tree.
| Field Summary | |
|---|---|
| protected  PdfDictionary | _dictThe dictionary which defines this node. | 
| protected  PdfModule | _moduleThe PdfModule this node is associated with. | 
| protected  boolean | _pageObjectFlagTrue if this node is a PageObject. | 
| protected  PageTreeNode | _parentThe parent node of this node. | 
| protected  boolean | _walkFinishedSet to true when all subnodes of this node have been iterated through following a StartWalk. | 
| Constructor Summary | |
|---|---|
| DocNode(PdfModule module,
        PageTreeNode parent,
        PdfDictionary dict)Superclass constructor. | |
| Method Summary | |
|---|---|
|  PdfObject | get(java.lang.String key,
    boolean inheritable)Get an named property. | 
|  PdfDictionary | getDict()Returns the page object or page tree node dictionary from which this object was constructed. | 
|  PdfDictionary | getFontResources()Returns the dictionary of fonts within the node's Resources dictionary, if both exist. | 
|  PdfArray | getMediaBox()Get the MediaBox of this node. | 
|  DocNode | getParent()Returns the parent of this node. | 
|  PdfDictionary | getResources()Get the Resources dictionary. | 
|  boolean | isPageObject()Returns true if this node is a PageObject. | 
| abstract  DocNode | nextDocNode()Get the next DocNode which is under this node. | 
| abstract  PageObject | nextPageObject()Get the next PageObject which is under this node. | 
| abstract  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 PageTreeNode _parent
protected PdfDictionary _dict
protected boolean _pageObjectFlag
protected boolean _walkFinished
| Constructor Detail | 
|---|
public DocNode(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 based| Method Detail | 
|---|
public boolean isPageObject()
public abstract void startWalk()
public abstract PageObject nextPageObject()
                                   throws PdfMalformedException
PdfMalformedException
public abstract DocNode nextDocNode()
                             throws PdfMalformedException
PdfMalformedExceptionpublic DocNode getParent()
public PdfDictionary getDict()
public PdfDictionary getResources()
                           throws PdfException
PdfException
public PdfDictionary getFontResources()
                               throws PdfException
PdfException
public PdfArray getMediaBox()
                     throws PdfInvalidException
PdfInvalidException
public PdfObject get(java.lang.String key,
                     boolean inheritable)
inheritable
  is true, walks up the chain of ancestors
  to try to find one.  If no ancestor has the property or
  inheritable is false, returns null.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||