DefaultDocumentIterator Class
DEPRECATED
- public class DefaultDocumentIterator
extends Object
implements com.bea.p13n.content.document.spi.DocumentIterator
A wrapper around a iterator or collection which supports a close.
-
Hierarchy
-
Object
DefaultDocumentIterator
-
All Implemented Interfaces
-
com.bea.p13n.content.document.spi.DocumentIterator
, Iterator
public synchronized void |
-
close ()
- Close this iterator.
|
public boolean |
-
hasNext ()
- Tell if there is another item in the iteration.
|
public Object |
-
next ()
- Get the next item in the iteration.
|
public void |
-
remove ()
- Remove the last returned object from the iterator's collection.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
collection
protected Collection
collection
- The wrapped collection.
This will be cleared upon a close().
iterator
protected Iterator
iterator
- The wrapped iterator.
DefaultDocumentIterator
public DefaultDocumentIterator(Collection
collection,
Iterator
iterator)
- Constructor from a collection and iterator.
DefaultDocumentIterator
public DefaultDocumentIterator(Collection
collection)
- Constructor from an collection.
DefaultDocumentIterator
public DefaultDocumentIterator(Iterator
iterator)
- Constructor from an iterator.
close() Method
public synchronized void close()
Close this iterator.
hasNext() Method
public boolean hasNext()
Tell if there is another item in the iteration.
next() Method
public Object
next()
Get the next item in the iteration.
remove() Method
public void remove()
Remove the last returned object from the iterator's collection.