|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavanet.staxutils.BaseXMLEventWriter
javanet.staxutils.XMLStreamEventWriter
XMLEventWriter
that writes events to a
XMLStreamWriter
.
Field Summary |
Fields inherited from class javanet.staxutils.BaseXMLEventWriter |
attrBuff, closed, factory, lastStart, nsBuff, nsStack |
Constructor Summary | |
XMLStreamEventWriter(XMLStreamWriter writer)
Constructs a XMLEventStreamWriter that writes events to the
given stream. |
Method Summary | |
void |
close()
|
void |
flush()
|
protected void |
sendEvent(XMLEvent event)
Called by the methods of this class to write the event to the stream. |
Methods inherited from class javanet.staxutils.BaseXMLEventWriter |
add, add, cacheAttribute, cacheNamespace, getNamespaceContext, getPrefix, peekNamespaceStack, popNamespaceStack, pushNamespaceStack, setDefaultNamespace, setNamespaceContext, setPrefix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLStreamEventWriter(XMLStreamWriter writer)
XMLEventStreamWriter
that writes events to the
given stream.
writer
- The XMLStreamWriter
to which the events will be
written.Method Detail |
public void flush() throws XMLStreamException
flush
in interface XMLEventWriter
flush
in class BaseXMLEventWriter
XMLStreamException
public void close() throws XMLStreamException
close
in interface XMLEventWriter
close
in class BaseXMLEventWriter
XMLStreamException
protected void sendEvent(XMLEvent event) throws XMLStreamException
BaseXMLEventWriter
sendEvent
in class BaseXMLEventWriter
event
- The event to write.
XMLStreamException
- If an error occurs processing the event.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |