Class LoggingXMLReader

java.lang.Object
com.sun.xml.rpc.streaming.LoggingXMLReader
All Implemented Interfaces:
XMLReader

public class LoggingXMLReader extends Object implements XMLReader
Author:
JAX-RPC Development Team
  • Constructor Details

  • Method Details

    • next

      public int next()
      Description copied from interface: XMLReader
      Return the next state of the XMLReader. The return value is one of: START, END, CHARS, PI, EOF.
      Specified by:
      next in interface XMLReader
    • nextContent

      public int nextContent()
      Specified by:
      nextContent in interface XMLReader
    • nextElementContent

      public int nextElementContent()
      Description copied from interface: XMLReader
      Return the next state of the XMLReader.

      Whitespace character content, processing instructions are ignored. Non-whitespace character content triggers an exception.

      The return value is one of: START, END, EOF.

      Specified by:
      nextElementContent in interface XMLReader
    • getState

      public int getState()
      Description copied from interface: XMLReader
      Return the current state of the XMLReader.
      Specified by:
      getState in interface XMLReader
    • getName

      public QName getName()
      Description copied from interface: XMLReader
      Return the current qualified name.

      Meaningful only when the state is one of: START, END.

      Specified by:
      getName in interface XMLReader
    • getURI

      public String getURI()
      Description copied from interface: XMLReader
      Return the current URI.

      Meaningful only when the state is one of: START, END.

      Specified by:
      getURI in interface XMLReader
    • getLocalName

      public String getLocalName()
      Description copied from interface: XMLReader
      Return the current local name.

      Meaningful only when the state is one of: START, END, PI.

      Specified by:
      getLocalName in interface XMLReader
    • getAttributes

      public Attributes getAttributes()
      Description copied from interface: XMLReader
      Return the current attribute list.

      Meaningful only when the state is one of: START.

      The returned Attributes object belong to the XMLReader and is only guaranteed to be valid until the XMLReader.next() method is called, directly or indirectly.

      Specified by:
      getAttributes in interface XMLReader
    • getValue

      public String getValue()
      Description copied from interface: XMLReader
      Return the current value.

      Meaningful only when the state is one of: CHARS, PI.

      Specified by:
      getValue in interface XMLReader
    • getElementId

      public int getElementId()
      Description copied from interface: XMLReader
      Return the current element ID.
      Specified by:
      getElementId in interface XMLReader
    • getLineNumber

      public int getLineNumber()
      Description copied from interface: XMLReader
      Return the current line number.

      Due to aggressive parsing, this value may be off by a few lines.

      Specified by:
      getLineNumber in interface XMLReader
    • getURI

      public String getURI(String prefix)
      Description copied from interface: XMLReader
      Return the URI for the given prefix.

      If there is no namespace declaration in scope for the given prefix, return null.

      Specified by:
      getURI in interface XMLReader
    • getPrefixes

      public Iterator getPrefixes()
      Description copied from interface: XMLReader
      Return an iterator on all prefixes in scope, except for the default prefix.
      Specified by:
      getPrefixes in interface XMLReader
    • recordElement

      public XMLReader recordElement()
      Description copied from interface: XMLReader
      Records the current element and leaves the reader positioned on its end tag.

      The XMLReader must be positioned on the start tag of the element. The returned reader will play back all events starting with the start tag of the element and ending with its end tag.

      Specified by:
      recordElement in interface XMLReader
    • skipElement

      public void skipElement()
      Description copied from interface: XMLReader
      Skip all nodes up to the end tag of the element with the current element ID.
      Specified by:
      skipElement in interface XMLReader
    • skipElement

      public void skipElement(int elementId)
      Description copied from interface: XMLReader
      Skip all nodes up to the end tag of the element with the given element ID.
      Specified by:
      skipElement in interface XMLReader
    • close

      public void close()
      Description copied from interface: XMLReader
      Close the XMLReader.

      All subsequent calls to XMLReader.next() will return EOF.

      Specified by:
      close in interface XMLReader