Class XStreamBandanaSerializer
- java.lang.Object
-
- com.atlassian.confluence.setup.bandana.XStreamBandanaSerializer
-
- All Implemented Interfaces:
BandanaSerializer
public class XStreamBandanaSerializer extends Object implements BandanaSerializer
XStream Bandana serializer implementation.
-
-
Constructor Summary
Constructors Constructor Description XStreamBandanaSerializer(ConfluenceXStream confluenceXStream)
XStreamBandanaSerializer(com.thoughtworks.xstream.XStream xStream)
Deprecated.since 7.10.0 Use Bandana Manager directly as it contains deserialization capabilities or use XStreamBandanaSerializer(ConfluenceXStream confluenceXStream) instead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
deserialize(Reader reader)
Deserialize an object.void
serialize(Object obj, Writer writer)
Serialize an object.
-
-
-
Constructor Detail
-
XStreamBandanaSerializer
@Deprecated public XStreamBandanaSerializer(com.thoughtworks.xstream.XStream xStream)
Deprecated.since 7.10.0 Use Bandana Manager directly as it contains deserialization capabilities or use XStreamBandanaSerializer(ConfluenceXStream confluenceXStream) instead- Parameters:
xStream
-
-
XStreamBandanaSerializer
public XStreamBandanaSerializer(ConfluenceXStream confluenceXStream)
-
-
Method Detail
-
serialize
public void serialize(Object obj, Writer writer)
Description copied from interface:BandanaSerializer
Serialize an object.- Specified by:
serialize
in interfaceBandanaSerializer
- Parameters:
obj
- the object to serializewriter
- a writer to serialize the object to
-
deserialize
public Object deserialize(Reader reader)
Description copied from interface:BandanaSerializer
Deserialize an object.- Specified by:
deserialize
in interfaceBandanaSerializer
- Parameters:
reader
- a reader providing the serialized object- Returns:
- the deserialized object
-
-