Package org.codehaus.stax2.ri
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 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Basic implementation of the method which will use event implementations available as part of the reference implementation.void
add
(XMLEventReader reader) void
close()
void
flush()
void
void
void
-
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:
add
in interfaceXMLEventConsumer
- Specified by:
add
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
add
- Specified by:
add
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
close
- Specified by:
close
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
flush
- Specified by:
flush
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
getNamespaceContext
- Specified by:
getNamespaceContext
in interfaceXMLEventWriter
-
getPrefix
- Specified by:
getPrefix
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
setDefaultNamespace
- Specified by:
setDefaultNamespace
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
setNamespaceContext
- Specified by:
setNamespaceContext
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
setPrefix
- Specified by:
setPrefix
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-