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
- Author:
- Siegfried Puchbauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_INDENT_STR
public static final String DEFAULT_INDENT_STR
- See Also:
- Constant Field Values
NEWLINE
public static final String NEWLINE
PrettyPrintXMLStreamWriter
public PrettyPrintXMLStreamWriter(groovy.xml.streamingmarkupsupport.StreamingMarkupWriter writer)
PrettyPrintXMLStreamWriter
public PrettyPrintXMLStreamWriter(groovy.xml.streamingmarkupsupport.StreamingMarkupWriter writer,
String indent)
endStartTag
protected void endStartTag()
throws IOException
- Overrides:
endStartTag
in class XMLStreamWriter
- Throws:
IOException
startTag
protected void startTag()
throws IOException
- Overrides:
startTag
in class XMLStreamWriter
- Throws:
IOException
startNode
public XMLStreamWriter startNode(String tag)
throws IOException
- Overrides:
startNode
in class XMLStreamWriter
- Throws:
IOException
end
public XMLStreamWriter end()
throws IOException
- Overrides:
end
in class XMLStreamWriter
- Throws:
IOException
characters
public XMLStreamWriter characters(String data)
throws IOException
- Overrides:
characters
in class XMLStreamWriter
- Throws:
IOException
startDocument
public XMLStreamWriter startDocument(String encoding,
String version)
throws IOException
- Overrides:
startDocument
in class XMLStreamWriter
- Throws:
IOException
Copyright (c) 2005-2009 The Grails project