org.sblim.cimclient.internal.wbem
Class CloseableIteratorSAX

java.lang.Object
  extended by org.sblim.cimclient.internal.wbem.CloseableIteratorSAX
All Implemented Interfaces:
Iterator<Object>, CloseableIterator<Object>

public class CloseableIteratorSAX
extends Object
implements CloseableIterator<Object>

CloseableIterator implementation for SAX parser.


Constructor Summary
CloseableIteratorSAX(CIMNode pCIMNode)
          Ctor.
CloseableIteratorSAX(InputStreamReader pStream, CIMObjectPath pPath)
          Ctor.
 
Method Summary
 void close()
          Closes the Iterator.
 CIMArgument<?>[] getCIMArguments()
          getCIMArguments : returns the array of parsed parameters and their values : String name, CIMDataType type, Object value
 WBEMException getWBEMException()
          If next() or hasNext() throws a RuntimeException, this method must be called to get the WBEMException.
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseableIteratorSAX

public CloseableIteratorSAX(InputStreamReader pStream,
                            CIMObjectPath pPath)
                     throws IOException,
                            SAXException,
                            ParserConfigurationException,
                            WBEMException
Ctor.

Parameters:
pStream -
pPath -
Throws:
IOException
SAXException
ParserConfigurationException
WBEMException

CloseableIteratorSAX

public CloseableIteratorSAX(CIMNode pCIMNode)
                     throws WBEMException
Ctor.

Parameters:
pCIMNode -
Throws:
WBEMException
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<Object>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Object>

next

public Object next()
Specified by:
next in interface Iterator<Object>

remove

public void remove()
Specified by:
remove in interface Iterator<Object>

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<Object>
Returns:
The WBEMException or null if one was not thrown.

getCIMArguments

public CIMArgument<?>[] getCIMArguments()
getCIMArguments : returns the array of parsed parameters and their values : String name, CIMDataType type, Object value

Returns:
CIMArgument[]


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