| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| private Charset | |
| private XMLStreamWriterImpl. | |
| private boolean | |
| pack-priv boolean | _escapeCharacters
This flag can be used to turn escaping off for content. |
| private char[] | |
| private int | |
| private XMLWriter | |
| public static final char | |
| public static final String | |
| public static final char | |
| public static final char | |
| public static final char | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final char | |
| public static final char | |
| public static final char | |
| public static final String | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Charset | |
| public void | close()
Implements jdk. Close this XMLStreamWriter by closing underlying writer. |
| private void | |
| public void | flush()
Implements jdk. Flush this XMLStreamWriter by flushing underlying writer. |
| private Charset | Returns: a charset objectReturns a charset object for the specified encoding |
| private void | |
| public void | |
| public void | writeAttribute(String
the local name of the attribute localName, String the value of the attribute value)Implements jdk. Writes an attribute to the output stream without a prefix. |
| public void | writeCData(String cdata)
Implements jdk. Writes a CData section |
| public void | writeCharacters(String data)
Implements jdk. Write text to the output |
| public void | writeCharacters(char[] data, int start, int len)
Implements jdk. Write text to the output |
| private void | |
| public void | writeDTD(String
the DTD to be written dtd)Implements jdk. Write a DTD section. |
| public void | writeEmptyElement(String
local name of the tag, may not be null localName)Implements jdk. Writes an empty element tag to the output |
| public void | writeEndDocument()
Implements jdk. Closes any start tags and writes corresponding end tags. |
| public void | writeEndElement()
Implements jdk. 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. |
| private void | |
| public void | writeStartDocument()
Implements jdk. Write the XML Declaration. |
| public void | writeStartDocument(String
version of the xml document version)Implements jdk. Write the XML Declaration. |
| public void | writeStartDocument(String
encoding of the xml declaration encoding, String version of the xml document version)Implements jdk. Write the XML Declaration. |
| public void | writeStartDocument(String
encoding of the xml declaration encoding, String version of the xml document version, String indicate if the xml document is standalone standalone)Write the XML Declaration. |
| public void | writeStartElement(String
local name of the tag, may not be null localName)Implements jdk. Writes a start tag to the output. |
| private void | writeXMLContent(char[] content, int start, int length, boolean escapeChars)
Writes XML content to underlying writer. |
| private void | |
| private void | writeXMLContent(String content, boolean escapeChars, boolean escapeDoubleQuotes)
Writes XML content to underlying writer. |
| _charset | back to summary |
|---|---|
| private Charset _charset | |
| _currentEle | back to summary |
|---|---|
| private XMLStreamWriterImpl. | |
| _doIndent | back to summary |
|---|---|
| private boolean _doIndent | |
| _escapeCharacters | back to summary |
|---|---|
| pack-priv boolean _escapeCharacters This flag can be used to turn escaping off for content. It does not apply to attribute content. | |
| _lineSep | back to summary |
|---|---|
| private char[] _lineSep | |
| _state | back to summary |
|---|---|
| private int _state | |
| _writer | back to summary |
|---|---|
| private XMLWriter _writer | |
| AMPERSAND | back to summary |
|---|---|
| public static final char AMPERSAND | |
| CLOSE_EMPTY_ELEMENT | back to summary |
|---|---|
| public static final String CLOSE_EMPTY_ELEMENT | |
| CLOSE_END_TAG | back to summary |
|---|---|
| public static final char CLOSE_END_TAG | |
| CLOSE_START_TAG | back to summary |
|---|---|
| public static final char CLOSE_START_TAG | |
| DOUBLEQUOT | back to summary |
|---|---|
| public static final char DOUBLEQUOT | |
| ELEMENT_ENDTAG_CLOSE | back to summary |
|---|---|
| pack-priv static final int ELEMENT_ENDTAG_CLOSE | |
| ELEMENT_ENDTAG_OPEN | back to summary |
|---|---|
| pack-priv static final int ELEMENT_ENDTAG_OPEN | |
| ELEMENT_STARTTAG_CLOSE | back to summary |
|---|---|
| pack-priv static final int ELEMENT_STARTTAG_CLOSE | |
| ELEMENT_STARTTAG_OPEN | back to summary |
|---|---|
| pack-priv static final int ELEMENT_STARTTAG_OPEN | |
| ENCODING_PREFIX | back to summary |
|---|---|
| public static final String ENCODING_PREFIX | |
| END_CDATA | back to summary |
|---|---|
| public static final String END_CDATA | |
| OPEN_END_TAG | back to summary |
|---|---|
| public static final String OPEN_END_TAG | |
| OPEN_START_TAG | back to summary |
|---|---|
| public static final char OPEN_START_TAG | |
| SEMICOLON | back to summary |
|---|---|
| public static final char SEMICOLON | |
| SPACE | back to summary |
|---|---|
| public static final char SPACE | |
| START_CDATA | back to summary |
|---|---|
| public static final String START_CDATA | |
| STATE_DTD_DECL | back to summary |
|---|---|
| pack-priv static final int STATE_DTD_DECL | |
| STATE_ELEMENT | back to summary |
|---|---|
| pack-priv static final int STATE_ELEMENT | |
| STATE_PROLOG | back to summary |
|---|---|
| pack-priv static final int STATE_PROLOG | |
| STATE_XML_DECL | back to summary |
|---|---|
| pack-priv static final int STATE_XML_DECL | |
| XMLStreamWriterImpl | back to summary |
|---|---|
| public XMLStreamWriterImpl(OutputStream os) throws XMLStreamException | |
| XMLStreamWriterImpl | back to summary |
|---|---|
| public XMLStreamWriterImpl(OutputStream os, Charset cs) throws XMLStreamException | |
| checkCharset | back to summary |
|---|---|
| private Charset checkCharset(Charset charset) throws UnsupportedEncodingException Checks for charset support.
| |
| close | back to summary |
|---|---|
| public void close() throws XMLStreamException Implements jdk. Close this XMLStreamWriter by closing underlying writer. | |
| closeStartTag | back to summary |
|---|---|
| private void closeStartTag() throws XMLStreamException marks close of start tag and writes the same into the writer. | |
| flush | back to summary |
|---|---|
| public void flush() throws XMLStreamException Implements jdk. Flush this XMLStreamWriter by flushing underlying writer. | |
| getCharset | back to summary |
|---|---|
| private Charset getCharset(String encoding) throws UnsupportedEncodingException Returns a charset object for the specified encoding
| |
| openStartTag | back to summary |
|---|---|
| private void openStartTag() throws XMLStreamException marks open of start tag and writes the same into the writer. | |
| setDoIndent | back to summary |
|---|---|
| public void setDoIndent(boolean doIndent) Set the flag to indicate if the writer should add line separator | |
| writeAttribute | back to summary |
|---|---|
| public void writeAttribute(String localName, String value) throws XMLStreamException Implements jdk. Writes an attribute to the output stream without a prefix.
| |
| writeCData | back to summary |
|---|---|
| public void writeCData(String cdata) throws XMLStreamException Implements jdk. Doc from jdk. Writes a CData section | |
| writeCharacters | back to summary |
|---|---|
| public void writeCharacters(String data) throws XMLStreamException Implements jdk. Doc from jdk. Write text to the output | |
| writeCharacters | back to summary |
|---|---|
| public void writeCharacters(char[] data, int start, int len) throws XMLStreamException Implements jdk. Doc from jdk. Write text to the output | |
| writeCharRef | back to summary |
|---|---|
| private void writeCharRef(int codePoint) throws XMLStreamException Writes character reference in hex format. | |
| writeDTD | back to summary |
|---|---|
| public void writeDTD(String dtd) throws XMLStreamException Implements jdk. 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 Implements jdk. Writes an empty element tag to the output
| |
| writeEndDocument | back to summary |
|---|---|
| public void writeEndDocument() throws XMLStreamException Implements jdk. Doc from jdk. Closes any start tags and writes corresponding end tags. | |
| writeEndElement | back to summary |
|---|---|
| public void writeEndElement() throws XMLStreamException Implements jdk. Doc from jdk. 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. | |
| writeLineSeparator | back to summary |
|---|---|
| private void writeLineSeparator() throws XMLStreamException Write a line separator | |
| writeStartDocument | back to summary |
|---|---|
| public void writeStartDocument() throws XMLStreamException Implements jdk. 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 Implements jdk. Write the XML Declaration. Defaults the encoding to utf-8
| |
| writeStartDocument | back to summary |
|---|---|
| public void writeStartDocument(String encoding, String version) throws XMLStreamException Implements jdk. 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
| |
| writeStartDocument | back to summary |
|---|---|
| public void writeStartDocument(String encoding, String version, String standalone) 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
| |
| writeStartElement | back to summary |
|---|---|
| public void writeStartElement(String localName) throws XMLStreamException Implements jdk. Writes a start tag to the output.
| |
| writeXMLContent | back to summary |
|---|---|
| private void writeXMLContent(char[] content, int start, int length, boolean escapeChars) throws XMLStreamException Writes XML content to underlying writer. Escapes characters unless escaping character feature is turned off. | |
| writeXMLContent | back to summary |
|---|---|
| private void writeXMLContent(String content) throws XMLStreamException | |
| writeXMLContent | back to summary |
|---|---|
| private void writeXMLContent(String content, boolean escapeChars, boolean escapeDoubleQuotes) throws XMLStreamException Writes XML content to underlying writer. Escapes characters unless escaping character feature is turned off. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | _isEmptyElement
indicate if an element is an empty one |
| pack-priv String | |
| protected XMLStreamWriterImpl. | _parent
the parent element |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Element(XMLStreamWriterImpl.
the parent of the element parent,name of the element localpart, boolean indicate if the element is an empty one isEmpty)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public XMLStreamWriterImpl. | |
| public int | |
| public boolean | |
| public void |
| _isEmptyElement | back to summary |
|---|---|
| pack-priv boolean _isEmptyElement indicate if an element is an empty one | |
| _localpart | back to summary |
|---|---|
| pack-priv String _localpart | |
| _parent | back to summary |
|---|---|
| protected XMLStreamWriterImpl. the parent element | |
| _state | back to summary |
|---|---|
| pack-priv int _state | |
| Element | back to summary |
|---|---|
| public Element() Default constructor. | |
| Element | back to summary |
|---|---|
public Element(XMLStreamWriterImpl.
| |
| getLocalName | back to summary |
|---|---|
| public String getLocalName() | |
| getParent | back to summary |
|---|---|
| public XMLStreamWriterImpl. | |
| getState | back to summary |
|---|---|
| public int getState() get the state of the element | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| setState | back to summary |
|---|---|
| public void setState(int state) Set the state of the element
| |