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

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

Introduction

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

The text is from its open source code.

Implementation

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

Method

voidclose()
Close this writer and free any resources associated with the writer.
voidflush()
Write any cached data to the underlying output mechanism.
ClassgetClass()
Returns the runtime class of this Object .
NamespaceContextgetNamespaceContext()
Returns the current namespace context.
StringgetPrefix(String uri)
Gets the prefix the uri is bound to
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.
voidsetNamespaceContext(NamespaceContext context)
Sets the current namespace context for prefix and uri bindings.
voidsetPrefix(String prefix, String uri)
Sets the prefix the uri is bound to.
voidwriteAttribute(String localName, String value)
Writes an attribute to the output stream without a prefix.
voidwriteAttribute(String namespaceURI, String localName, String value)
Writes an attribute to the output stream
voidwriteAttribute(String prefix, String namespaceURI, String localName, String value)
Writes an attribute to the output stream
voidwriteCData(String data)
Writes a CData section
voidwriteCharacters(String text)
Write text to the output
voidwriteCharacters(char[] text, int start, int len)
Write text to the output
voidwriteComment(String data)
Writes an xml comment with the data enclosed
voidwriteDefaultNamespace(String namespaceURI)
Writes the default namespace to the stream
voidwriteDTD(String dtd)
Write a DTD section.
voidwriteEmptyElement(String localName)
Writes an empty element tag to the output
voidwriteEmptyElement(String namespaceURI, String localName)
Writes an empty element tag to the output
voidwriteEmptyElement(String prefix, String localName, String namespaceURI)
Writes an empty element tag to the output
voidwriteEndDocument()
Closes any start tags and writes corresponding end tags.
voidwriteEndElement()
Writes an end tag to the output relying on the internal state of the writer to determine the prefix and local name of the event.
voidwriteEntityRef(String name)
Writes an entity reference
voidwriteNamespace(String prefix, String namespaceURI)
Writes a namespace to the output stream If the prefix argument to this method is the empty string, "xmlns", or null this method will delegate to writeDefaultNamespace
voidwriteProcessingInstruction(String target, String data)
Writes a processing instruction
voidwriteStartDocument()
Write the XML Declaration.
voidwriteStartDocument(String version)
Write the XML Declaration.
voidwriteStartDocument(String encoding, String version)
Write the XML Declaration.
voidwriteStartElement(String prefix, String localName, String namespaceURI)
Writes a start tag to the output
voidwriteStartElement(String localName)
Writes a start tag to the output.
voidwriteStartElement(String namespaceURI, String localName)
Writes a start tag to the output