Class XStreamUtils
java.lang.Object
com.atlassian.bamboo.persister.xstream.XStreamUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.thoughtworks.xstream.XStream
createCompactEncryptingXStream
(@NotNull XStreamFactory secureXStreamFactory, @NotNull SecretEncryptionService secretEncryptionService) static com.thoughtworks.xstream.XStream
createEncryptingXStream
(@NotNull XStreamFactory secureXStreamFactory, @NotNull SecretEncryptionService secretEncryptionService) static <T> T
fromUtfXml
(com.thoughtworks.xstream.XStream xStream, File file) Reads an object from file encoded with UTF-8.static @Nullable com.thoughtworks.xstream.io.path.Path
getPath
(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) readNextChildNodeValue
(com.thoughtworks.xstream.io.HierarchicalStreamReader reader) Returns a name-value pair for a child node.static void
Serialises an object to XML encoded with UTF-8.static void
Serialises an object to XML encoded with default encoding.static void
writeNode
(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, String nodeName, @Nullable String text) Writes a node with the supplied text value.
-
Method Details
-
writeNode
public static void writeNode(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, String nodeName, @Nullable @Nullable String text) Writes a node with the supplied text value. -
readNextChildNodeValue
public 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. -
fromUtfXml
public static <T> T fromUtfXml(com.thoughtworks.xstream.XStream xStream, File file) throws FileNotFoundException Reads an object from file encoded with UTF-8.- Throws:
FileNotFoundException
-
toUtfXml
public static void toUtfXml(com.thoughtworks.xstream.XStream xStream, Object buildResults, File file) throws FileNotFoundException Serialises an object to XML encoded with UTF-8.- Throws:
FileNotFoundException
-
toXml
public static void toXml(com.thoughtworks.xstream.XStream xStream, Object object, File file) throws FileNotFoundException Serialises an object to XML encoded with default encoding.- Throws:
FileNotFoundException
-
getPath
@Nullable public static @Nullable com.thoughtworks.xstream.io.path.Path getPath(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer) -
createCompactEncryptingXStream
public static com.thoughtworks.xstream.XStream createCompactEncryptingXStream(@NotNull @NotNull XStreamFactory secureXStreamFactory, @NotNull @NotNull SecretEncryptionService secretEncryptionService) -
createEncryptingXStream
public static com.thoughtworks.xstream.XStream createEncryptingXStream(@NotNull @NotNull XStreamFactory secureXStreamFactory, @NotNull @NotNull SecretEncryptionService secretEncryptionService)
-