org.sblim.cimclient.internal.wbem
Class CloseableIteratorDOM

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

public class CloseableIteratorDOM
extends java.lang.Object
implements CloseableIterator<java.lang.Object>

Class CloseableIteratorDOM is a CloseableIterator implementation for the CIM-XML DOM parser.


Constructor Summary
CloseableIteratorDOM(org.xml.sax.InputSource pIs, CIMObjectPath pLocalPath)
          Ctor.
CloseableIteratorDOM(java.io.InputStreamReader pStream, CIMObjectPath pPath)
          Ctor.
 
Method Summary
 void close()
          Closes the Iterator.
 java.util.List<java.lang.Object> getParamValues()
          getParamValues : returns the list of CIMArgument 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()
           
 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

CloseableIteratorDOM

public CloseableIteratorDOM(java.io.InputStreamReader pStream,
                            CIMObjectPath pPath)
                     throws WBEMException,
                            java.io.IOException
Ctor.

Parameters:
pStream -
pPath -
Throws:
WBEMException
java.io.IOException

CloseableIteratorDOM

public CloseableIteratorDOM(org.xml.sax.InputSource pIs,
                            CIMObjectPath pLocalPath)
                     throws WBEMException
Ctor.

Parameters:
pIs -
pLocalPath -
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<java.lang.Object>

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()
Specified by:
remove in interface java.util.Iterator<java.lang.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<java.lang.Object>
Returns:
The WBEMException or null if one was not thrown.

getParamValues

public java.util.List<java.lang.Object> getParamValues()
getParamValues : returns the list of CIMArgument parsed parameters and their values : String name, CIMDataType type, Object value

Returns:
List of CIMArgument


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