org.codehaus.groovy.grails.web.xml
Class PrettyPrintXMLStreamWriter
java.lang.Object
org.codehaus.groovy.grails.web.xml.XMLStreamWriter
org.codehaus.groovy.grails.web.xml.PrettyPrintXMLStreamWriter
public class PrettyPrintXMLStreamWriter
- extends XMLStreamWriter
A XMLStreamWriter dedicated to create indented/pretty printed output.
- Since:
- 1.1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PrettyPrintXMLStreamWriter
public PrettyPrintXMLStreamWriter(groovy.xml.streamingmarkupsupport.StreamingMarkupWriter writer)
PrettyPrintXMLStreamWriter
public PrettyPrintXMLStreamWriter(groovy.xml.streamingmarkupsupport.StreamingMarkupWriter writer,
java.lang.String indent)
endStartTag
protected void endStartTag()
throws java.io.IOException
- Overrides:
endStartTag in class XMLStreamWriter
- Throws:
java.io.IOException
startTag
protected void startTag()
throws java.io.IOException
- Overrides:
startTag in class XMLStreamWriter
- Throws:
java.io.IOException
startNode
public XMLStreamWriter startNode(java.lang.String tag)
throws java.io.IOException
- Overrides:
startNode in class XMLStreamWriter
- Throws:
java.io.IOException
end
public XMLStreamWriter end()
throws java.io.IOException
- Overrides:
end in class XMLStreamWriter
- Throws:
java.io.IOException
characters
public XMLStreamWriter characters(java.lang.String data)
throws java.io.IOException
- Overrides:
characters in class XMLStreamWriter
- Throws:
java.io.IOException
startDocument
public XMLStreamWriter startDocument(java.lang.String encoding,
java.lang.String version)
throws java.io.IOException
- Overrides:
startDocument in class XMLStreamWriter
- Throws:
java.io.IOException