org.sblim.cimclient.internal.wbem
Class CloseableIteratorPULL

java.lang.Object
  extended by org.sblim.cimclient.internal.wbem.CloseableIteratorPULL
All Implemented Interfaces:
java.util.Iterator, CloseableIterator

public class CloseableIteratorPULL
extends java.lang.Object
implements CloseableIterator

CloseableIterator implementation for PULL parser.


Constructor Summary
CloseableIteratorPULL(java.io.InputStreamReader pStream, CIMObjectPath pPath)
          Ctor.
CloseableIteratorPULL(XMLPullParser pParser, XMLDefaultHandlerImpl pHandler)
          Ctor.
 
Method Summary
 void close()
          Closes the Iterator.
 WBEMException getWBEMException()
          If next() or hasNext() throws a RuntimeException, this method must be called to get the WBEMException.
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseableIteratorPULL

public CloseableIteratorPULL(java.io.InputStreamReader pStream,
                             CIMObjectPath pPath)
                      throws java.lang.RuntimeException
Ctor.

Parameters:
pStream -
pPath -
Throws:
java.lang.RuntimeException

CloseableIteratorPULL

public CloseableIteratorPULL(XMLPullParser pParser,
                             XMLDefaultHandlerImpl pHandler)
Ctor.

Parameters:
pParser -
pHandler -
Method Detail

close

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

Specified by:
close in interface CloseableIterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

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

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

getWBEMException

public WBEMException getWBEMException()
Description copied from interface: CloseableIterator
If next() or hasNext() throws a RuntimeException, this method must be called to get the WBEMException.

Specified by:
getWBEMException in interface CloseableIterator
Returns:
The WBEMException or null if one was not thrown.


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