Interface ExtendedXMLEvent

All Superinterfaces:
XMLEvent, XMLStreamConstants

public interface ExtendedXMLEvent extends XMLEvent
Extended XMLEvent interface that provides additional functionality.
  • Method Details

    • matches

      boolean matches(XMLEvent event)
      Determines if this event matches another event, irrespective of document location.
      Parameters:
      event - The event to match against.
      Returns:
      true if the two events match, false otherwise.
    • writeEvent

      void writeEvent(XMLStreamWriter writer) throws XMLStreamException
      Writes the event to the provided XMLStreamWriter.
      Parameters:
      writer - The destination stream.
      Throws:
      XMLStreamException - If an error occurs writing to the destination stream.