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, waitMethods 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:CloseableIteratorCloses theIterator. This allows the underlying implementation to do any cleanup and disconnect from any source that it may be using.- Specified by:
closein interfaceCloseableIterator<E>
-
getWBEMException
Returns WBEMException- Specified by:
getWBEMExceptionin interfaceCloseableIterator<E>- Returns:
- WBEMException : This can be null
-
hasNext
-
next
-
remove
-