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.
    Ctor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the Iterator.
    getCIMArguments : returns the array of parsed parameters and their values : String name, CIMDataType type, Object value
    If next() or hasNext() throws a RuntimeException, this method must be called to get the WBEMException.
    boolean
     
    java.lang.Object
     
    void
     

    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(java.io.InputStreamReader pStream, CIMObjectPath pPath) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, WBEMException
      Ctor.
      Parameters:
      pStream -
      pPath -
      Throws:
      java.io.IOException
      org.xml.sax.SAXException
      javax.xml.parsers.ParserConfigurationException
      WBEMException
    • CloseableIteratorSAX

      public CloseableIteratorSAX(CIMNode pCIMNode) throws WBEMException
      Ctor.
      Parameters:
      pCIMNode -
      Throws:
      WBEMException
  • Method Details

    • 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.
    • getCIMArguments

      public CIMArgument<?>[] getCIMArguments()
      getCIMArguments : returns the array of parsed parameters and their values : String name, CIMDataType type, Object value
      Returns:
      CIMArgument<?>[]