| Modifier and Type | Field and Description |
|---|---|
| private XMLStreamWriter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(XMLEvent
the event to be added event)Implements javax. |
| public void | add(XMLEventReader
the event stream to add to the output eventReader)Implements javax. |
| public void | close()
Implements javax. |
| public void | flush()
Implements javax. |
| public NamespaceContext | getNamespaceContext()
Implements javax. |
| public String | getPrefix(String
the uri to look up prefix)Implements javax. |
| public void | setDefaultNamespace(String
the uri to bind to the default namespace namespace)Implements javax. |
| public void | setNamespaceContext(NamespaceContext
the namespace context to use for this writer nsContext)Implements javax. |
| public void | setPrefix(String
the prefix to bind to the uri prefix, String the uri to bind to the prefix uri)Implements javax. |
| streamWriter | back to summary |
|---|---|
| private XMLStreamWriter streamWriter | |
| AbstractXMLEventWriter | back to summary |
|---|---|
| public AbstractXMLEventWriter(XMLStreamWriter streamWriter) | |
| add | back to summary | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public void add(XMLEvent event) throws XMLStreamException Implements javax. Doc from javax. 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.
| |||||||||||||||||||||||||||||||||||||||||
| add | back to summary |
|---|---|
| public void add(XMLEventReader eventReader) throws XMLStreamException Implements javax. Doc from javax. 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.
| |
| close | back to summary |
|---|---|
| public void close() throws XMLStreamException Implements javax. Doc from javax. Frees any resources associated with this stream
| |
| flush | back to summary |
|---|---|
| public void flush() throws XMLStreamException Implements javax. Doc from javax. Writes any cached events to the underlying output mechanism
| |
| getNamespaceContext | back to summary |
|---|---|
| public NamespaceContext getNamespaceContext() Implements javax. Doc from javax. Returns the current namespace context.
| |
| getPrefix | back to summary |
|---|---|
| public String getPrefix(String prefix) throws XMLStreamException Implements javax. Doc from javax. Gets the prefix the uri is bound to
| |
| setDefaultNamespace | back to summary |
|---|---|
| public void setDefaultNamespace(String namespace) throws XMLStreamException Implements javax. Doc from javax. Binds a URI to the default namespace This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair. If this method is called before a START_ELEMENT has been written the uri is bound in the root scope.
| |
| setNamespaceContext | back to summary |
|---|---|
| public void setNamespaceContext(NamespaceContext nsContext) throws XMLStreamException Implements javax. Doc from javax. Sets the current namespace context for prefix and uri bindings. This context becomes the root namespace context for writing and will replace the current root namespace context. Subsequent calls to setPrefix and setDefaultNamespace will bind namespaces using the context passed to the method as the root context for resolving namespaces.
| |
| setPrefix | back to summary |
|---|---|
| public void setPrefix(String prefix, String uri) throws XMLStreamException Implements javax. Doc from javax. Sets the prefix the uri is bound to. This prefix is bound in the scope of the current START_ELEMENT / END_ELEMENT pair. If this method is called before a START_ELEMENT has been written the prefix is bound in the root scope.
| |