org.sblim.cimclient.internal.wbem
Class CloseableIteratorGeneric<E>

java.lang.Object
  extended by org.sblim.cimclient.internal.wbem.CloseableIteratorGeneric<E>
Type Parameters:
E - : Type
All Implemented Interfaces:
java.util.Iterator<java.lang.Object>, CloseableIterator<java.lang.Object>

public class CloseableIteratorGeneric<E>
extends java.lang.Object
implements CloseableIterator<java.lang.Object>

Class CloseableIteratorGeneric creates new CloseableIterator from an Iterator and WBEMException.


Constructor Summary
CloseableIteratorGeneric(java.util.Iterator<E> pIterator)
          Ctor.
CloseableIteratorGeneric(java.util.Iterator<E> pIterator, WBEMException pException)
          Ctor.
 
Method Summary
 void close()
          Closes the Iterator.
 WBEMException getWBEMException()
          Returns WBEMException
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
          iterator.remove() is not supported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseableIteratorGeneric

public CloseableIteratorGeneric(java.util.Iterator<E> pIterator,
                                WBEMException pException)
Ctor. : creates new CloseableIterator from an Iterator and WBEMException.

Parameters:
pIterator - : Iterator to be used in closeableIterator
pException - : WBEMException thrown by parser (this can be null)

CloseableIteratorGeneric

public CloseableIteratorGeneric(java.util.Iterator<E> pIterator)
Ctor. : creates new CloseableIterator from an Iterator.

Parameters:
pIterator - : Iterator to be used in closeableIterator
Method Detail

close

public void close()
Description copied from interface: CloseableIterator
Closes the Iterator. This allows the underlying implementation to do any cleanup and disconnect from any source that it may be using.

Specified by:
close in interface CloseableIterator<java.lang.Object>

getWBEMException

public WBEMException getWBEMException()
Returns WBEMException

Specified by:
getWBEMException in interface CloseableIterator<java.lang.Object>
Returns:
WBEMException : This can be null

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<java.lang.Object>

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator<java.lang.Object>

remove

public void remove()
iterator.remove() is not supported

Specified by:
remove in interface java.util.Iterator<java.lang.Object>


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