com.atlassian.bamboo.serialisers
Class JavaObjectSerialiser

java.lang.Object
  extended by com.atlassian.bamboo.serialisers.JavaObjectSerialiser
All Implemented Interfaces:
ObjectSerialiser

public class JavaObjectSerialiser
extends java.lang.Object
implements ObjectSerialiser


Constructor Summary
JavaObjectSerialiser()
           
 
Method Summary
 int getTag()
          Returns an unique identifier for this object serialiser
 Pair<java.io.InputStream,java.lang.Object> readObject(java.io.InputStream inputStream)
          Retreieves an object from a stream.
 java.io.ObjectOutputStream writeObject(java.lang.Object object, java.io.OutputStream outputStream)
          Writes an object to the supplied stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaObjectSerialiser

public JavaObjectSerialiser()
Method Detail

writeObject

public java.io.ObjectOutputStream writeObject(java.lang.Object object,
                                              java.io.OutputStream outputStream)
                                       throws java.io.IOException
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 interface ObjectSerialiser
Throws:
java.io.IOException

readObject

public Pair<java.io.InputStream,java.lang.Object> readObject(java.io.InputStream inputStream)
                                                      throws java.io.IOException,
                                                             java.lang.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 interface ObjectSerialiser
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getTag

public int getTag()
Description copied from interface: ObjectSerialiser
Returns an unique identifier for this object serialiser

Specified by:
getTag in interface ObjectSerialiser


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.