org.apache.synapse.commons.staxon.core.event

## Class SimpleXMLFilteredEventReader

- java.lang.Object
- - javax.xml.stream.util.EventReaderDelegate
  - - org.apache.synapse.commons.staxon.core.event.SimpleXMLFilteredEventReader

- All Implemented Interfaces:
    java.util.Iterator, javax.xml.stream.XMLEventReader

      public class SimpleXMLFilteredEventReader
      extends javax.xml.stream.util.EventReaderDelegate

  Simple implementation of a filtered `XMLEventReader`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleXMLFilteredEventReader(javax.xml.stream.XMLEventReader reader, javax.xml.stream.EventFilter filter)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getElementText()`
    `boolean` | `hasNext()`
    `java.lang.Object` | `next()`
    `javax.xml.stream.events.XMLEvent` | `nextEvent()`
    `javax.xml.stream.events.XMLEvent` | `nextTag()`
    `javax.xml.stream.events.XMLEvent` | `peek()`
    `void` | `setParent(javax.xml.stream.XMLEventReader reader)`

    - ### Methods inherited from class javax.xml.stream.util.EventReaderDelegate

      `close, getParent, getProperty, 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 Detail

    - #### SimpleXMLFilteredEventReader

          public SimpleXMLFilteredEventReader(javax.xml.stream.XMLEventReader reader,
                                              javax.xml.stream.EventFilter filter)

  - ### Method Detail

    - #### setParent

          public void setParent(javax.xml.stream.XMLEventReader reader)

      Overrides:
        `setParent` in class `javax.xml.stream.util.EventReaderDelegate`

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in interface `java.util.Iterator`
      Specified by:
        `hasNext` in interface `javax.xml.stream.XMLEventReader`
      Overrides:
        `hasNext` in class `javax.xml.stream.util.EventReaderDelegate`

    - #### peek

          public javax.xml.stream.events.XMLEvent peek()
                                                throws javax.xml.stream.XMLStreamException

      Specified by:
        `peek` in interface `javax.xml.stream.XMLEventReader`
      Overrides:
        `peek` in class `javax.xml.stream.util.EventReaderDelegate`
      Throws:
        `javax.xml.stream.XMLStreamException`

    - #### next

          public java.lang.Object next()

      Specified by:
        `next` in interface `java.util.Iterator`
      Overrides:
        `next` in class `javax.xml.stream.util.EventReaderDelegate`

    - #### nextEvent

          public javax.xml.stream.events.XMLEvent nextEvent()
                                                     throws javax.xml.stream.XMLStreamException

      Specified by:
        `nextEvent` in interface `javax.xml.stream.XMLEventReader`
      Overrides:
        `nextEvent` in class `javax.xml.stream.util.EventReaderDelegate`
      Throws:
        `javax.xml.stream.XMLStreamException`

    - #### getElementText

          public java.lang.String getElementText()
                                          throws javax.xml.stream.XMLStreamException

      Specified by:
        `getElementText` in interface `javax.xml.stream.XMLEventReader`
      Overrides:
        `getElementText` in class `javax.xml.stream.util.EventReaderDelegate`
      Throws:
        `javax.xml.stream.XMLStreamException`

    - #### nextTag

          public javax.xml.stream.events.XMLEvent nextTag()
                                                   throws javax.xml.stream.XMLStreamException

      Specified by:
        `nextTag` in interface `javax.xml.stream.XMLEventReader`
      Overrides:
        `nextTag` in class `javax.xml.stream.util.EventReaderDelegate`
      Throws:
        `javax.xml.stream.XMLStreamException`

Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.