E
- : Typejava.util.Iterator<java.lang.Object>
, CloseableIterator<java.lang.Object>
public class CloseableIteratorGeneric<E> extends java.lang.Object implements CloseableIterator<java.lang.Object>
Constructor | Description |
---|---|
CloseableIteratorGeneric(java.util.Iterator<E> pIterator) |
Ctor.
|
CloseableIteratorGeneric(java.util.Iterator<E> pIterator,
WBEMException pException) |
Ctor.
|
Modifier and Type | Method | 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()
CloseableIterator
Iterator
. This allows the underlying
implementation to do any cleanup and disconnect from any source that it
may be using.close
in interface CloseableIterator<E>
public WBEMException getWBEMException()
getWBEMException
in interface CloseableIterator<E>
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
public java.lang.Object next()
next
in interface java.util.Iterator<E>
public void remove()
remove
in interface java.util.Iterator<E>
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.