javax.wbem

Interface CloseableIterator

public interface CloseableIterator extends 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
voidclose()
Closes the Iterator.
WBEMExceptiongetWBEMException()
If next() or hasNext() throws a RuntimeException, this method must be called to get the WBEMException.

Method Detail

close

public 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

public 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.