Modifier and Type | Field and Description |
---|---|
public static final Charset | |
public static final String | |
public static final String |
Modifier and Type | Method and Description |
---|---|
public void | |
public void | |
public void | writeAttribute(String
the local name of the attribute localName, String the value of the attribute value)Writes an attribute to the output stream without a prefix. |
public void | writeCData(String
the data contained in the CData Section, may not be null data)Writes a CData section |
public void | |
public void | writeCharacters(char[]
the value to write text, int the starting position in the array start, int the number of characters to write len)Write text to the output |
public void | |
public void | writeEmptyElement(String
local name of the tag, may not be null localName)Writes an empty element tag to the output |
public void | |
public void | writeEndElement()
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. |
public void | |
public void | |
public void | writeStartDocument(String
encoding of the xml declaration encoding, String version of the xml document version)Write the XML Declaration. |
public void | writeStartElement(String
local name of the tag, may not be null localName)Writes a start tag to the output. |
DEFAULT_CHARSET | back to summary |
---|---|
public static final Charset DEFAULT_CHARSET |
DEFAULT_ENCODING | back to summary |
---|---|
public static final String DEFAULT_ENCODING |
DEFAULT_XML_VERSION | back to summary |
---|---|
public static final String DEFAULT_XML_VERSION |
close | back to summary |
---|---|
public void close() throws XMLStreamException Close this writer and free any resources associated with the writer. This must not close the underlying output stream. |
flush | back to summary |
---|---|
public void flush() throws XMLStreamException Write any cached data to the underlying output mechanism. |
writeAttribute | back to summary |
---|---|
public void writeAttribute(String localName, String value) throws XMLStreamException Writes an attribute to the output stream without a prefix.
|
writeCData | back to summary |
---|---|
public void writeCData(String data) throws XMLStreamException Writes a CData section
|
writeCharacters | back to summary |
---|---|
public void writeCharacters(String text) throws XMLStreamException Write text to the output
|
writeCharacters | back to summary |
---|---|
public void writeCharacters(char[] text, int start, int len) throws XMLStreamException Write text to the output
|
writeDTD | back to summary |
---|---|
public void writeDTD(String dtd) throws XMLStreamException Write a DTD section. This string represents the entire doctypedecl production from the XML 1.0 specification.
|
writeEmptyElement | back to summary |
---|---|
public void writeEmptyElement(String localName) throws XMLStreamException Writes an empty element tag to the output
|
writeEndDocument | back to summary |
---|---|
public void writeEndDocument() throws XMLStreamException Closes any start tags and writes corresponding end tags. |
writeEndElement | back to summary |
---|---|
public void writeEndElement() throws XMLStreamException 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. |
writeStartDocument | back to summary |
---|---|
public void writeStartDocument() throws XMLStreamException Write the XML Declaration. Defaults the XML version to 1.0, and the encoding to utf-8 |
writeStartDocument | back to summary |
---|---|
public void writeStartDocument(String version) throws XMLStreamException Write the XML Declaration. Defaults the encoding to utf-8
|
writeStartDocument | back to summary |
---|---|
public void writeStartDocument(String encoding, String version) throws XMLStreamException Write the XML Declaration. Note that the encoding parameter does not set the actual encoding of the underlying output. That must be set when the instance of the XMLStreamWriter is created using the XMLOutputFactory
|
writeStartElement | back to summary |
---|---|
public void writeStartElement(String localName) throws XMLStreamException Writes a start tag to the output. All writeStartElement methods open a new scope in the internal namespace context. Writing the corresponding EndElement causes the scope to be closed.
|