pdftron.Common
Class PDFNetIterator

java.lang.Object
  extended by pdftron.Common.PDFNetIterator
All Implemented Interfaces:
java.lang.Cloneable, java.util.Iterator
Direct Known Subclasses:
CharIterator, FDFFieldIterator, FieldIterator, FontCharCodeIterator, GSChangesIterator, PageIterator

public abstract class PDFNetIterator
extends java.lang.Object
implements java.util.Iterator, java.lang.Cloneable

Supports a simple iteration over a non-generic collection.


Constructor Summary
PDFNetIterator()
           
 
Method Summary
abstract  java.lang.Object clone()
           
 void Destroy()
          Frees the native memory of the object.
 boolean hasNext()
          Determine whether iterator can be successfully advanced to the next element
abstract  java.lang.Object next()
          Advances the iterator to the next element of the collection.
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFNetIterator

public PDFNetIterator()
Method Detail

Destroy

public void Destroy()
             throws PDFNetException
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

Throws:
PDFNetException

next

public abstract java.lang.Object next()
Advances the iterator to the next element of the collection.

Specified by:
next in interface java.util.Iterator
Returns:
the next object

clone

public abstract java.lang.Object clone()
Overrides:
clone in class java.lang.Object

hasNext

public boolean hasNext()
Determine whether iterator can be successfully advanced to the next element

Specified by:
hasNext in interface java.util.Iterator
Returns:
true if the iterator can be successfully advanced to the next element; false if the end collection is reached.

remove

public void remove()
Specified by:
remove in interface java.util.Iterator


© 2002-2011 PDFTron Systems Inc.