Class CloseableIteratorSAX
- java.lang.Object
-
- org.sblim.cimclient.internal.wbem.CloseableIteratorSAX
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Object>,CloseableIterator<java.lang.Object>
public class CloseableIteratorSAX extends java.lang.Object implements CloseableIterator<java.lang.Object>
CloseableIterator implementation for SAX parser.
-
-
Constructor Summary
Constructors Constructor Description CloseableIteratorSAX(java.io.InputStreamReader pStream, CIMObjectPath pPath)Ctor.CloseableIteratorSAX(CIMNode pCIMNode)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes theIterator.CIMArgument<?>[]getCIMArguments()getCIMArguments : returns the array of parsed parameters and their values : String name, CIMDataType type, Object valueWBEMExceptiongetWBEMException()Ifnext()orhasNext()throws aRuntimeException, this method must be called to get theWBEMException.booleanhasNext()java.lang.Objectnext()voidremove()
-
-
-
Constructor Detail
-
CloseableIteratorSAX
public CloseableIteratorSAX(java.io.InputStreamReader pStream, CIMObjectPath pPath) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, WBEMExceptionCtor.- Parameters:
pStream-pPath-- Throws:
java.io.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionWBEMException
-
CloseableIteratorSAX
public CloseableIteratorSAX(CIMNode pCIMNode) throws WBEMException
Ctor.- Parameters:
pCIMNode-- Throws:
WBEMException
-
-
Method Detail
-
close
public void close()
Description copied from interface:CloseableIteratorCloses theIterator. This allows the underlying implementation to do any cleanup and disconnect from any source that it may be using.- Specified by:
closein interfaceCloseableIterator<java.lang.Object>
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.lang.Object>
-
next
public java.lang.Object next()
- Specified by:
nextin interfacejava.util.Iterator<java.lang.Object>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<java.lang.Object>
-
getWBEMException
public WBEMException getWBEMException()
Description copied from interface:CloseableIteratorIfnext()orhasNext()throws aRuntimeException, this method must be called to get theWBEMException.- Specified by:
getWBEMExceptionin interfaceCloseableIterator<java.lang.Object>- Returns:
- The
WBEMExceptionor 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>[]
-
-