public interface ExtendedXMLEvent extends XMLEvent
XMLEvent
interface that provides additional functionality.ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Modifier and Type | Method and Description |
---|---|
boolean |
matches(XMLEvent event)
Determines if this event matches another event, irrespective of document
location.
|
void |
writeEvent(XMLStreamWriter writer)
Writes the event to the provided
XMLStreamWriter . |
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
boolean matches(XMLEvent event)
event
- The event to match against.true
if the two events match, false
otherwise.void writeEvent(XMLStreamWriter writer) throws XMLStreamException
XMLStreamWriter
.writer
- The destination stream.XMLStreamException
- If an error occurs writing to the destination
stream.