Java javax.xml.stream XMLEventWriter fields, constructors, methods, implement or subclass

Example usage for Java javax.xml.stream XMLEventWriter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.xml.stream XMLEventWriter.

The text is from its open source code.

Implementation

javax.xml.stream.XMLEventWriter has the following implementations.
Click this link to see all its implementation.

Method

voidadd(XMLEvent event)
Add an event to the output stream Adding a START_ELEMENT will open a new namespace scope that will be closed when the corresponding END_ELEMENT is written.
voidadd(XMLEventReader reader)
Adds an entire stream to an output stream, calls next() on the inputStream argument until hasNext() returns false This should be treated as a convenience method that will perform the following loop over all the events in an event reader and call add on each event.
voidclose()
Frees any resources associated with this stream
voidflush()
Writes any cached events to the underlying output mechanism
NamespaceContextgetNamespaceContext()
Returns the current namespace context.
voidsetDefaultNamespace(String uri)
Binds a URI to the default namespace This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair.
voidsetPrefix(String prefix, String uri)
Sets the prefix the uri is bound to.