Package com.atlassian.bamboo.serialisers
Class XStreamObjectSerialiser
- java.lang.Object
-
- com.atlassian.bamboo.serialisers.XStreamObjectSerialiser
-
- All Implemented Interfaces:
ObjectSerialiser
public class XStreamObjectSerialiser extends Object implements ObjectSerialiser
-
-
Constructor Summary
Constructors Constructor Description XStreamObjectSerialiser(XStreamManager xStreamManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetTag()Returns an unique identifier for this object serialiserPair<InputStream,Object>readObject(InputStream inputStream)Retreieves an object from a stream.@NotNull OutputStreamwriteObject(Object object, OutputStream outputStream)Writes an object to the supplied stream.
-
-
-
Constructor Detail
-
XStreamObjectSerialiser
public XStreamObjectSerialiser(XStreamManager xStreamManager)
-
-
Method Detail
-
writeObject
@NotNull public @NotNull OutputStream writeObject(Object object, OutputStream outputStream) throws IOException
Description copied from interface:ObjectSerialiserWrites an object to the supplied stream. Returns a stream that should be used for subsequent calls, or closed if no longer needed. It may be the same stream or a wrapped stream.- Specified by:
writeObjectin interfaceObjectSerialiser- Throws:
IOException
-
readObject
public Pair<InputStream,Object> readObject(InputStream inputStream) throws IOException, ClassNotFoundException
Description copied from interface:ObjectSerialiserRetreieves an object from a stream. Returns a stream and a desrialised object. The stream should be used for subsequent calls, or closed if no longer needed. It may be the same stream or a wrapped stream.- Specified by:
readObjectin interfaceObjectSerialiser- Throws:
IOExceptionClassNotFoundException
-
getTag
public int getTag()
Description copied from interface:ObjectSerialiserReturns an unique identifier for this object serialiser- Specified by:
getTagin interfaceObjectSerialiser
-
-