public class PrettyPrintXMLStreamWriter extends XMLStreamWriter
A XMLStreamWriter dedicated to create indented/pretty printed output.
Modifiers | Name | Description |
---|---|---|
static String |
DEFAULT_INDENT_STR |
|
static String |
NEWLINE |
Fields inherited from class | Fields |
---|---|
class XMLStreamWriter |
mode, tagStack, writer |
Constructor and description |
---|
PrettyPrintXMLStreamWriter(StreamingMarkupWriter writer) |
PrettyPrintXMLStreamWriter(StreamingMarkupWriter writer, String indent) |
Type Params | Return Type | Name and description |
---|---|---|
|
public XMLStreamWriter |
characters(String data) |
|
public XMLStreamWriter |
end() |
|
protected void |
endStartTag() |
|
public XMLStreamWriter |
startDocument(String encoding, String version) |
|
public XMLStreamWriter |
startNode(String tag) |
|
protected void |
startTag() |
Methods inherited from class | Name |
---|---|
class XMLStreamWriter |
attribute, characters, end, endStartTag, startDocument, startNode, startTag |