Top Description Constructors Methods
groovy.util

public Class XmlUtil

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
groovy.lang.Writable, groovy.util.slurpersupport.GPathResult, org.codehaus.groovy.runtime.InvokerHelper, java.io.OutputStream, .Writer

Deprecated

Used for pretty printing XML content and other XML related utilities.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
asString(GPathResult node)

Deprecated as a consequence of GPathResult being deprecated.
public static String

Returns:

the pretty String representation of the GPathResult
serialize
(GPathResult
a GPathResult to serialize to a String
node
)

Deprecated
Return a pretty version of the GPathResult.
public static void
serialize(GPathResult
a GPathResult to serialize
node
,
OutputStream
the OutputStream to write to
os
)

Deprecated
Write a pretty version of the GPathResult to the OutputStream.
public static void
serialize(GPathResult
a GPathResult to serialize
node
,
Writer
the Writer to write to
w
)

Deprecated
Write a pretty version of the GPathResult to the Writer.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

XmlUtilback to summary
public XmlUtil()

Method Detail

asStringback to summary
private static String asString(GPathResult node)

Deprecated

as a consequence of GPathResult being deprecated. See corresponding docs for further information.

serializeback to summary
public static String serialize(GPathResult node)

Deprecated

Return a pretty version of the GPathResult.

Parameters
node:GPathResult

a GPathResult to serialize to a String

Returns:String

the pretty String representation of the GPathResult

Annotations
@Deprecated
serializeback to summary
public static void serialize(GPathResult node, OutputStream os)

Deprecated

Write a pretty version of the GPathResult to the OutputStream.

Parameters
node:GPathResult

a GPathResult to serialize

os:OutputStream

the OutputStream to write to

Annotations
@Deprecated
serializeback to summary
public static void serialize(GPathResult node, Writer w)

Deprecated

Write a pretty version of the GPathResult to the Writer.

Parameters
node:GPathResult

a GPathResult to serialize

w:Writer

the Writer to write to

Annotations
@Deprecated