org.codehaus.stax2.evt
Interface XMLEvent2

All Superinterfaces:
javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
All Known Implementing Classes:
CompactStartElement, EntityDecl, ExtEntity, IntEntity, NotationDecl, ParsedExtEntity, SimpleStartElement, UnparsedExtEntity, WAttribute, WCharacters, WComment, WDTD, WEndDocument, WEndElement, WEntityDeclaration, WEntityReference, WEvent, WNamespace, WNotationDeclaration, WProcInstr, WStartDocument

public interface XMLEvent2
extends javax.xml.stream.events.XMLEvent

Interface that extends basic XMLEvent2 with method(s) that are missing from it; specifically linkage that allows using a stream/event writer for outputting.

NOTE: Unfortunately there is no way to cleanly retrofit this interface to actual implementation classes, so some casting is necessary to make use of new features.


Field Summary
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Method Summary
 void writeUsing(javax.xml.stream.XMLStreamWriter w)
           
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

Method Detail

writeUsing

void writeUsing(javax.xml.stream.XMLStreamWriter w)
                throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException