| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private String | |
| private static final Object | |
| private static final Object | |
| private static final Object | |
| private Object | |
| private Stack |
| Access | Constructor and Description |
|---|---|
| public |
| depth | back to summary |
|---|---|
| private int depth | |
| indentStep | back to summary |
|---|---|
| private String indentStep | |
| SEEN_DATA | back to summary |
|---|---|
| private static final Object SEEN_DATA | |
| SEEN_ELEMENT | back to summary |
|---|---|
| private static final Object SEEN_ELEMENT | |
| SEEN_NOTHING | back to summary |
|---|---|
| private static final Object SEEN_NOTHING | |
| state | back to summary |
|---|---|
| private Object state | |
| stateStack | back to summary |
|---|---|
| private Stack<Object> stateStack | |
| IndentingXMLStreamWriter | back to summary |
|---|---|
| public IndentingXMLStreamWriter(XMLStreamWriter writer) | |
| doIndent | back to summary |
|---|---|
| private void doIndent() throws XMLStreamException Print indentation for the current level.
| |
| getIndentStep | back to summary |
|---|---|
| public int getIndentStep()
Deprecated Only return the length of the indent string. Return the current indent step. Return the current indent step: each start tag will be indented by this number of spaces times the number of ancestors that the element has.
| |
| onEmptyElement | back to summary |
|---|---|
| private void onEmptyElement() throws XMLStreamException | |
| onEndElement | back to summary |
|---|---|
| private void onEndElement() throws XMLStreamException | |
| onStartElement | back to summary |
|---|---|
| private void onStartElement() throws XMLStreamException | |
| setIndentStep | back to summary |
|---|---|
| public void setIndentStep(int indentStep)
Deprecated Should use the version that takes string. Set the current indent step.
| |
| setIndentStep | back to summary |
|---|---|
| public void setIndentStep(String s) | |
| writeCData | back to summary |
|---|---|
| public void writeCData(String data) throws XMLStreamException Overrides org. Implements javax. Doc from javax. Writes a CData section
| |
| writeCharacters | back to summary |
|---|---|
| public void writeCharacters(String text) throws XMLStreamException Overrides org. Implements javax. Doc from javax. Write text to the output
| |
| writeCharacters | back to summary |
|---|---|
| public void writeCharacters(char[] text, int start, int len) throws XMLStreamException Overrides org. Implements javax. Doc from javax. Write text to the output
| |
| writeEmptyElement | back to summary |
|---|---|
| public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException Overrides org. Implements javax. Doc from javax. Writes an empty element tag to the output
| |
| writeEmptyElement | back to summary |
|---|---|
| public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException Overrides org. Implements javax. Doc from javax. Writes an empty element tag to the output
| |
| writeEmptyElement | back to summary |
|---|---|
| public void writeEmptyElement(String localName) throws XMLStreamException Overrides org. Implements javax. Doc from javax. Writes an empty element tag to the output
| |
| writeEndElement | back to summary |
|---|---|
| public void writeEndElement() throws XMLStreamException Overrides org. Implements javax. Doc from javax. 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 Overrides org. Implements javax. Doc from javax. 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 Overrides org. Implements javax. Doc from javax. Write the XML Declaration. Defaults the XML version to 1.0
| |
| writeStartDocument | back to summary |
|---|---|
| public void writeStartDocument(String encoding, String version) throws XMLStreamException Overrides org. Implements javax. Doc from javax. 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 Overrides org. Implements javax. Doc from javax. 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.
| |
| writeStartElement | back to summary |
|---|---|
| public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException Overrides org. Implements javax. Doc from javax. Writes a start tag to the output
| |
| writeStartElement | back to summary |
|---|---|
| public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException Overrides org. Implements javax. Doc from javax. Writes a start tag to the output
| |