Package org.grails.web.xml
Class XMLStreamWriter
- java.lang.Object
-
- org.grails.web.xml.XMLStreamWriter
-
- Direct Known Subclasses:
PrettyPrintXMLStreamWriter
public class XMLStreamWriter extends java.lang.ObjectA simple XML Stream Writer that leverages the StreamingMarkupWriter of Groovy- Since:
- 1.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classXMLStreamWriter.Mode
-
Field Summary
Fields Modifier and Type Field Description protected XMLStreamWriter.Modemodeprotected java.util.Stack<java.lang.String>tagStackprotected groovy.xml.streamingmarkupsupport.StreamingMarkupWriterwriter
-
Constructor Summary
Constructors Constructor Description XMLStreamWriter(groovy.xml.streamingmarkupsupport.StreamingMarkupWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLStreamWriterattribute(java.lang.String name, java.lang.String value)XMLStreamWritercharacters(java.lang.String data)XMLStreamWriterend()protected voidendStartTag()XMLStreamWriterstartDocument(java.lang.String encoding, java.lang.String version)XMLStreamWriterstartNode(java.lang.String tag)protected voidstartTag()
-
-
-
Field Detail
-
writer
protected groovy.xml.streamingmarkupsupport.StreamingMarkupWriter writer
-
mode
protected XMLStreamWriter.Mode mode
-
tagStack
protected java.util.Stack<java.lang.String> tagStack
-
-
Method Detail
-
startDocument
public XMLStreamWriter startDocument(java.lang.String encoding, java.lang.String version) throws java.io.IOException
- Throws:
java.io.IOException
-
startTag
protected void startTag() throws java.io.IOException- Throws:
java.io.IOException
-
startNode
public XMLStreamWriter startNode(java.lang.String tag) throws java.io.IOException
- Throws:
java.io.IOException
-
end
public XMLStreamWriter end() throws java.io.IOException
- Throws:
java.io.IOException
-
attribute
public XMLStreamWriter attribute(java.lang.String name, java.lang.String value) throws java.io.IOException
- Throws:
java.io.IOException
-
endStartTag
protected void endStartTag() throws java.io.IOException- Throws:
java.io.IOException
-
characters
public XMLStreamWriter characters(java.lang.String data) throws java.io.IOException
- Throws:
java.io.IOException
-
-