public final class XStreamUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
fromUtfXml(com.thoughtworks.xstream.XStream xStream,
File file)
Reads an object from file encoded with UTF-8.
|
static com.thoughtworks.xstream.io.path.Path |
getPath(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) |
static org.apache.commons.lang3.tuple.Pair<String,String> |
readNextChildNodeValue(com.thoughtworks.xstream.io.HierarchicalStreamReader reader)
Returns a name-value pair for a child node.
|
static void |
toUtfXml(com.thoughtworks.xstream.XStream xStream,
Object buildResults,
File file)
Serialises an object to XML encoded with UTF-8.
|
static void |
toXml(com.thoughtworks.xstream.XStream xStream,
Object object,
File file)
Serialises an object to XML encoded with default encoding.
|
static void |
writeNode(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
String nodeName,
String text)
Writes a node with the supplied text value.
|
public static void writeNode(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, String nodeName, @Nullable String text)
public static org.apache.commons.lang3.tuple.Pair<String,String> readNextChildNodeValue(com.thoughtworks.xstream.io.HierarchicalStreamReader reader)
public static <T> T fromUtfXml(com.thoughtworks.xstream.XStream xStream, File file) throws FileNotFoundException
FileNotFoundException
public static void toUtfXml(com.thoughtworks.xstream.XStream xStream, Object buildResults, File file) throws FileNotFoundException
FileNotFoundException
public static void toXml(com.thoughtworks.xstream.XStream xStream, Object object, File file) throws FileNotFoundException
FileNotFoundException
@Nullable public static com.thoughtworks.xstream.io.path.Path getPath(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.