|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.etymon.pjx.util.PdfFieldTree.FieldTreeIterator
protected class PdfFieldTree.FieldTreeIterator
An iterator over the tree of field dictionaries in a PDF document.
Field Summary | |
---|---|
protected PdfFieldTree |
_ft
The field tree associated with this iterator. |
protected PdfManager |
_m
The manager associated with this iterator. |
Constructor Summary | |
---|---|
PdfFieldTree.FieldTreeIterator(PdfFieldTree ft,
PdfManager m)
Constructs an iterator over a field tree. |
Method Summary | |
---|---|
protected void |
cleanUp()
Removes any empty lists from the top of the stack. |
protected PdfReference |
descendTree()
Descends the left-edge of the tree until reaching a terminal node and returns its reference. |
boolean |
hasNext()
Returns true if any more field objects remain. |
protected java.util.List |
newList(java.util.List list)
|
PdfReference |
next()
Returns an indirect reference to the next field object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PdfManager _m
protected PdfFieldTree _ft
Constructor Detail |
---|
public PdfFieldTree.FieldTreeIterator(PdfFieldTree ft, PdfManager m) throws java.io.IOException, PdfFormatException
ft
- the field tree to iterate over.m
- the associated document manager.
java.io.IOException
PdfFormatException
Method Detail |
---|
protected java.util.List newList(java.util.List list)
protected PdfReference descendTree() throws java.io.IOException, PdfFormatException
java.io.IOException
PdfFormatException
protected void cleanUp()
public boolean hasNext() throws PdfFormatException
PdfFieldTreeIterator
true
if any more field objects remain.
hasNext
in interface PdfFieldTreeIterator
true
if more field objects remain.
PdfFormatException
public PdfReference next() throws java.util.NoSuchElementException, java.io.IOException, PdfFormatException
PdfFieldTreeIterator
next
in interface PdfFieldTreeIterator
java.io.IOException
PdfFormatException
java.util.NoSuchElementException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |