Package org.grails.web.xml
Class PrettyPrintXMLStreamWriter
- java.lang.Object
-
- org.grails.web.xml.XMLStreamWriter
-
- org.grails.web.xml.PrettyPrintXMLStreamWriter
-
public class PrettyPrintXMLStreamWriter extends XMLStreamWriter
A XMLStreamWriter dedicated to create indented/pretty printed output.- Since:
- 1.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.grails.web.xml.XMLStreamWriter
XMLStreamWriter.Mode
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_INDENT_STRstatic java.lang.StringNEWLINE-
Fields inherited from class org.grails.web.xml.XMLStreamWriter
mode, tagStack, writer
-
-
Constructor Summary
Constructors Constructor Description PrettyPrintXMLStreamWriter(groovy.xml.streamingmarkupsupport.StreamingMarkupWriter writer)PrettyPrintXMLStreamWriter(groovy.xml.streamingmarkupsupport.StreamingMarkupWriter writer, java.lang.String indent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLStreamWritercharacters(java.lang.String data)XMLStreamWriterend()protected voidendStartTag()XMLStreamWriterstartDocument(java.lang.String encoding, java.lang.String version)XMLStreamWriterstartNode(java.lang.String tag)protected voidstartTag()-
Methods inherited from class org.grails.web.xml.XMLStreamWriter
attribute
-
-
-
-
Field Detail
-
DEFAULT_INDENT_STR
public static final java.lang.String DEFAULT_INDENT_STR
- See Also:
- Constant Field Values
-
NEWLINE
public static final java.lang.String NEWLINE
-
-
Method Detail
-
endStartTag
protected void endStartTag() throws java.io.IOException- Overrides:
endStartTagin classXMLStreamWriter- Throws:
java.io.IOException
-
startTag
protected void startTag() throws java.io.IOException- Overrides:
startTagin classXMLStreamWriter- Throws:
java.io.IOException
-
startNode
public XMLStreamWriter startNode(java.lang.String tag) throws java.io.IOException
- Overrides:
startNodein classXMLStreamWriter- Throws:
java.io.IOException
-
end
public XMLStreamWriter end() throws java.io.IOException
- Overrides:
endin classXMLStreamWriter- Throws:
java.io.IOException
-
characters
public XMLStreamWriter characters(java.lang.String data) throws java.io.IOException
- Overrides:
charactersin classXMLStreamWriter- Throws:
java.io.IOException
-
startDocument
public XMLStreamWriter startDocument(java.lang.String encoding, java.lang.String version) throws java.io.IOException
- Overrides:
startDocumentin classXMLStreamWriter- Throws:
java.io.IOException
-
-