@PublicApi
public interface XStreamManager
Common XStream persistence behaviour.
This component also maintains XStreams capable of deserializing XMLs containing classes specific to plugins.
To deserialize such XMLs, use DefaultXStreamManager.fromXML(String, String)
and pass your plugin's key.
Modifier and Type | Method and Description |
---|---|
Object |
fromXML(String xml)
Convert the xml into a java Object instance
|
Object |
fromXML(String pluginKey,
String serializedData)
Convert XML serializedData into an object in the context of plugin referred to by pluginKey.
|
String |
toXML(Object object)
Convert the java object into its XML form
|
void |
toXML(Object object,
OutputStream outputStream)
Convert the java object into its XML form and stream it to the output stream provided.
|
Object fromXML(String xml)
xml
- The xml representation of the objectObject fromXML(String pluginKey, String serializedData)
pluginKey
- plugin key defining the plugin context of the marshalled classserializedData
- XML dataString toXML(Object object)
object
- The objectvoid toXML(Object object, OutputStream outputStream)
object
- The objectoutputStream
- stream to write object representation to.Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.