|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.xml.XmlUtil
class XmlUtil extends Object
Used for pretty printing XML content.
Constructor Summary | |
XmlUtil()
|
Method Summary | |
---|---|
static String
|
serialize(Element element)
Return a pretty String version of the Element. |
static void
|
serialize(Element element, OutputStream os)
Write a pretty version of the Element to the OutputStream. |
static String
|
serialize(Writable writable)
Return a pretty String version of the XML content produced by the Writable. |
static void
|
serialize(Writable writable, OutputStream os)
Write a pretty version of the XML content produced by the Writable to the OutputStream. |
static String
|
serialize(String xmlString)
Return a pretty version of the XML content contained in the given String. |
static void
|
serialize(String xmlString, OutputStream os)
Write a pretty version of the given XML string to the OutputStream. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Constructor Detail |
---|
XmlUtil()
Method Detail |
---|
public static String serialize(Element element)
public static void serialize(Element element, OutputStream os)
public static String serialize(Writable writable)
public static void serialize(Writable writable, OutputStream os)
public static String serialize(String xmlString)
public static void serialize(String xmlString, OutputStream os)
Copyright © 2003-2009 The Codehaus. All rights reserved.