javax.wbem
Interface CloseableIterator

All Superinterfaces:
java.util.Iterator
All Known Implementing Classes:
CloseableIteratorDOM, CloseableIteratorPULL, CloseableIteratorSAX

public interface CloseableIterator
extends java.util.Iterator

An iterator over a collection. Iterator takes the place of Enumeration in the Java collections framework. Iterators differ from enumerations in two ways:


Method Summary
 void close()
          Closes the Iterator.
 WBEMException getWBEMException()
          If next() or hasNext() throws a RuntimeException, this method must be called to get the WBEMException.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

close

void close()
Closes the Iterator. This allows the undeerlying implementation to do any cleanup and disconnect from any source that it may be using.


getWBEMException

WBEMException getWBEMException()
If next() or hasNext() throws a RuntimeException, this method must be called to get the WBEMException.

Returns:
The WBEMException or null if one was not thrown.


Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.