Package javanet.staxutils
Class XMLStreamEventWriter
java.lang.Object
javanet.staxutils.BaseXMLEventWriter
javanet.staxutils.XMLStreamEventWriter
- All Implemented Interfaces:
XMLEventConsumer
,XMLEventWriter
XMLEventWriter
that writes events to a
XMLStreamWriter
.- Version:
- $Revision: 1.1 $
- Author:
- Christian Niles
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionXMLStreamEventWriter
(XMLStreamWriter writer) Constructs aXMLEventStreamWriter
that writes events to the given stream. -
Method Summary
Methods inherited from class javanet.staxutils.BaseXMLEventWriter
add, add, cacheAttribute, cacheNamespace, getNamespaceContext, getPrefix, peekNamespaceStack, popNamespaceStack, pushNamespaceStack, setDefaultNamespace, setNamespaceContext, setPrefix
-
Constructor Details
-
XMLStreamEventWriter
Constructs aXMLEventStreamWriter
that writes events to the given stream.- Parameters:
writer
- TheXMLStreamWriter
to which the events will be written.
-
-
Method Details
-
flush
- Specified by:
flush
in interfaceXMLEventWriter
- Overrides:
flush
in classBaseXMLEventWriter
- Throws:
XMLStreamException
-
close
- Specified by:
close
in interfaceXMLEventWriter
- Overrides:
close
in classBaseXMLEventWriter
- Throws:
XMLStreamException
-
sendEvent
Description copied from class:BaseXMLEventWriter
Called by the methods of this class to write the event to the stream.- Specified by:
sendEvent
in classBaseXMLEventWriter
- Parameters:
event
- The event to write.- Throws:
XMLStreamException
- If an error occurs processing the event.
-