E - : Typepublic class CloseableIteratorGeneric<E> extends java.lang.Object implements CloseableIterator<java.lang.Object>
| Constructor and Description |
|---|
CloseableIteratorGeneric(java.util.Iterator<E> pIterator)
Ctor.
|
CloseableIteratorGeneric(java.util.Iterator<E> pIterator,
WBEMException pException)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the
Iterator. |
WBEMException |
getWBEMException()
Returns WBEMException
|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove()
iterator.remove() is not supported
|
public CloseableIteratorGeneric(java.util.Iterator<E> pIterator, WBEMException pException)
pIterator - : Iterator to be used in closeableIteratorpException - : WBEMException thrown by parser (this can be null)public CloseableIteratorGeneric(java.util.Iterator<E> pIterator)
pIterator - : Iterator to be used in closeableIteratorpublic void close()
CloseableIteratorIterator. This allows the underlying
implementation to do any cleanup and disconnect from any source that it
may be using.close in interface CloseableIterator<java.lang.Object>public WBEMException getWBEMException()
getWBEMException in interface CloseableIterator<java.lang.Object>public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Object>public java.lang.Object next()
next in interface java.util.Iterator<java.lang.Object>public void remove()
remove in interface java.util.Iterator<java.lang.Object>Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.