Top Constructors Methods
org.codehaus.groovy.control

public abstract Class XStreamUtils

extends Object
Class Inheritance
Imports
com.thoughtworks.xstream.XStream, com.thoughtworks.xstream.io.xml.StaxDriver, org.codehaus.groovy.runtime.DefaultGroovyMethods, java.io.File, .FileWriter, java.net.URI

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static File

Returns:

a file-name java.io.File representation or null if the file-name was in an invalid URI format
astFile
(final String uriOrFileName)

Takes the incoming file-name and checks whether this is a URI using the file: protocol or a non-URI and treats it accordingly.

public static void
serialize(final String name, final Object ast)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

XStreamUtilsback to summary
public XStreamUtils()

Method Detail

astFileback to summary
private static File astFile(final String uriOrFileName)

Takes the incoming file-name and checks whether this is a URI using the file: protocol or a non-URI and treats it accordingly.

Returns:File

a file-name java.io.File representation or null if the file-name was in an invalid URI format

serializeback to summary
public static void serialize(final String name, final Object ast)