Class CloseableIteratorGeneric<E>
java.lang.Object
org.sblim.cimclient.internal.wbem.CloseableIteratorGeneric<E>
- Type Parameters:
E
- : Type
- All Implemented Interfaces:
Iterator<Object>, CloseableIterator<Object>
Class CloseableIteratorGeneric creates new CloseableIterator from an Iterator
and WBEMException.
-
Constructor Summary
ConstructorsConstructorDescriptionCloseableIteratorGeneric
(Iterator<E> pIterator) Ctor.CloseableIteratorGeneric
(Iterator<E> pIterator, WBEMException pException) Ctor. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
CloseableIteratorGeneric
Ctor. : creates new CloseableIterator from an Iterator and WBEMException.- Parameters:
pIterator
- : Iterator to be used in closeableIteratorpException
- : WBEMException thrown by parser (this can be null)
-
CloseableIteratorGeneric
-
-
Method Details
-
close
public void close()Description copied from interface:CloseableIterator
Closes theIterator
. This allows the underlying implementation to do any cleanup and disconnect from any source that it may be using.- Specified by:
close
in interfaceCloseableIterator<E>
-
getWBEMException
Returns WBEMException- Specified by:
getWBEMException
in interfaceCloseableIterator<E>
- Returns:
- WBEMException : This can be null
-
hasNext
-
next
-
remove
-