Class Stax2EventWriterImpl
java.lang.Object
org.codehaus.stax2.ri.Stax2EventWriterImpl
- All Implemented Interfaces:
XMLEventConsumer, XMLEventWriter, XMLStreamConstants
Simple implementation of
XMLEventWriter.-
Field Summary
FieldsFields inherited from interface XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBasic implementation of the method which will use event implementations available as part of the reference implementation.voidadd(XMLEventReader reader) voidclose()voidflush()voidvoidvoid
-
Field Details
-
_writer
-
-
Constructor Details
-
Stax2EventWriterImpl
-
-
Method Details
-
add
Basic implementation of the method which will use event implementations available as part of the reference implementation.Note: ALL events (except for custom ones ref. impl. itself doesn't produce, and thus may not always be able to deal with) are routed through stream writer. This because it may want to do different kinds of validation
- Specified by:
addin interfaceXMLEventConsumer- Specified by:
addin interfaceXMLEventWriter- Throws:
XMLStreamException
-
add
- Specified by:
addin interfaceXMLEventWriter- Throws:
XMLStreamException
-
close
- Specified by:
closein interfaceXMLEventWriter- Throws:
XMLStreamException
-
flush
- Specified by:
flushin interfaceXMLEventWriter- Throws:
XMLStreamException
-
getNamespaceContext
- Specified by:
getNamespaceContextin interfaceXMLEventWriter
-
getPrefix
- Specified by:
getPrefixin interfaceXMLEventWriter- Throws:
XMLStreamException
-
setDefaultNamespace
- Specified by:
setDefaultNamespacein interfaceXMLEventWriter- Throws:
XMLStreamException
-
setNamespaceContext
- Specified by:
setNamespaceContextin interfaceXMLEventWriter- Throws:
XMLStreamException
-
setPrefix
- Specified by:
setPrefixin interfaceXMLEventWriter- Throws:
XMLStreamException
-