org.sblim.cimclient.internal.wbem

Class CloseableIteratorGeneric<E>

public class CloseableIteratorGeneric<E> extends Object implements CloseableIterator<Object>

Class CloseableIteratorGeneric creates new CloseableIterator from an Iterator and WBEMException.

Parameters: : Type

Constructor Summary
CloseableIteratorGeneric(Iterator<E> pIterator, WBEMException pException)
Ctor.
CloseableIteratorGeneric(Iterator<E> pIterator)
Ctor.
Method Summary
voidclose()
WBEMExceptiongetWBEMException()
Returns WBEMException
booleanhasNext()
Objectnext()
voidremove()
iterator.remove() is not supported

Constructor Detail

CloseableIteratorGeneric

public CloseableIteratorGeneric(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(Iterator<E> pIterator)
Ctor. : creates new CloseableIterator from an Iterator.

Parameters: pIterator : Iterator to be used in closeableIterator

Method Detail

close

public void close()

getWBEMException

public WBEMException getWBEMException()
Returns WBEMException

Returns: WBEMException : This can be null

hasNext

public boolean hasNext()

next

public Object next()

remove

public void remove()
iterator.remove() is not supported
Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.