Class CloseableIteratorSAX
java.lang.Object
org.sblim.cimclient.internal.wbem.CloseableIteratorSAX
- All Implemented Interfaces:
Iterator<Object>
,CloseableIterator<Object>
CloseableIterator implementation for SAX parser.
-
Constructor Summary
ConstructorsConstructorDescriptionCloseableIteratorSAX
(InputStreamReader pStream, CIMObjectPath pPath) Ctor.CloseableIteratorSAX
(CIMNode pCIMNode) 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()
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
-
CloseableIteratorSAX
public CloseableIteratorSAX(InputStreamReader pStream, CIMObjectPath pPath) throws IOException, SAXException, ParserConfigurationException, WBEMException Ctor.- Parameters:
pStream
-pPath
-- Throws:
IOException
SAXException
ParserConfigurationException
WBEMException
-
CloseableIteratorSAX
Ctor.- Parameters:
pCIMNode
-- Throws:
WBEMException
-
-
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<Object>
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
getWBEMException
Description copied from interface:CloseableIterator
Ifnext()
orhasNext()
throws aRuntimeException
, this method must be called to get theWBEMException
.- Specified by:
getWBEMException
in interfaceCloseableIterator<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:
- CIMArgumentinvalid input: '<'?>[]
-