Class CloseableIteratorPULL
java.lang.Object
org.sblim.cimclient.internal.wbem.CloseableIteratorPULL
- All Implemented Interfaces:
Iterator<Object>, CloseableIterator<Object>
CloseableIterator implementation for PULL parser.
-
Constructor Summary
ConstructorsConstructorDescriptionCloseableIteratorPULL(InputStreamReader pStream, CIMObjectPath pPath) Ctor.CloseableIteratorPULL(XMLPullParser pParser, XMLDefaultHandlerImpl pHandler) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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.booleanhasNext()next()voidremove()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
CloseableIteratorPULL
public CloseableIteratorPULL(InputStreamReader pStream, CIMObjectPath pPath) throws RuntimeException Ctor.- Parameters:
pStream-pPath-- Throws:
RuntimeException
-
CloseableIteratorPULL
Ctor.- Parameters:
pParser-pHandler-
-
-
Method Details
-
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<Object>
-
hasNext
-
next
-
remove
-
getWBEMException
Description copied from interface:CloseableIteratorIfnext()orhasNext()throws aRuntimeException, this method must be called to get theWBEMException.- Specified by:
getWBEMExceptionin interfaceCloseableIterator<Object>- Returns:
- The
WBEMExceptionor null if one was not thrown.
-
getCIMArguments
getCIMArguments : returns the array of parsed parameters and their values : String name, CIMDataType type, Object value- Returns:
- CIMArgumentinvalid input: '<'?>[]
-