Class CloseableIteratorPULL
java.lang.Object
org.sblim.cimclient.internal.wbem.CloseableIteratorPULL
- All Implemented Interfaces:
java.util.Iterator<java.lang.Object>
,CloseableIterator<java.lang.Object>
public class CloseableIteratorPULL
extends java.lang.Object
implements CloseableIterator<java.lang.Object>
CloseableIterator implementation for PULL parser.
-
Constructor Summary
ConstructorsConstructorDescriptionCloseableIteratorPULL
(java.io.InputStreamReader pStream, CIMObjectPath pPath) Ctor.CloseableIteratorPULL
(XMLPullParser pParser, XMLDefaultHandlerImpl pHandler) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes theIterator
.CIMArgument<?>[]
getCIMArguments : returns the array of parsed parameters and their values : String name, CIMDataType type, Object valueIfnext()
orhasNext()
throws aRuntimeException
, this method must be called to get theWBEMException
.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
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
CloseableIteratorPULL
public CloseableIteratorPULL(java.io.InputStreamReader pStream, CIMObjectPath pPath) throws java.lang.RuntimeException Ctor.- Parameters:
pStream
-pPath
-- Throws:
java.lang.RuntimeException
-
CloseableIteratorPULL
Ctor.- Parameters:
pParser
-pHandler
-
-
-
Method Details
-
close
public void close()Description copied from interface:CloseableIterator
Closes theIterator
. This allows the underlying implementation to do any cleanup and disconnect from any source that it may be using.- Specified by:
close
in interfaceCloseableIterator<java.lang.Object>
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfacejava.util.Iterator<java.lang.Object>
-
next
public java.lang.Object next()- Specified by:
next
in interfacejava.util.Iterator<java.lang.Object>
-
remove
public void remove()- Specified by:
remove
in interfacejava.util.Iterator<java.lang.Object>
-
getWBEMException
Description copied from interface:CloseableIterator
Ifnext()
orhasNext()
throws aRuntimeException
, this method must be called to get theWBEMException
.- Specified by:
getWBEMException
in interfaceCloseableIterator<java.lang.Object>
- Returns:
- The
WBEMException
or null if one was not thrown.
-
getCIMArguments
getCIMArguments : returns the array of parsed parameters and their values : String name, CIMDataType type, Object value- Returns:
- CIMArgument<?>[]
-