Package com.atlassian.bamboo.serialisers
Class JavaObjectSerialiser
java.lang.Object
com.atlassian.bamboo.serialisers.JavaObjectSerialiser
- All Implemented Interfaces:
ObjectSerialiser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getTag()
Returns an unique identifier for this object serialiserreadObject
(InputStream inputStream) Retreieves an object from a stream.writeObject
(Object object, OutputStream outputStream) Writes an object to the supplied stream.
-
Constructor Details
-
JavaObjectSerialiser
public JavaObjectSerialiser()
-
-
Method Details
-
writeObject
Description copied from interface:ObjectSerialiser
Writes 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:
writeObject
in interfaceObjectSerialiser
- Throws:
IOException
-
readObject
public Pair<InputStream,Object> readObject(InputStream inputStream) throws IOException, ClassNotFoundException Description copied from interface:ObjectSerialiser
Retreieves 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:
readObject
in interfaceObjectSerialiser
- Throws:
IOException
ClassNotFoundException
-
getTag
public int getTag()Description copied from interface:ObjectSerialiser
Returns an unique identifier for this object serialiser- Specified by:
getTag
in interfaceObjectSerialiser
-