public class JavaObjectSerialiser extends Object implements ObjectSerialiser
Constructor and Description |
---|
JavaObjectSerialiser() |
Modifier and Type | Method and Description |
---|---|
int |
getTag()
Returns an unique identifier for this object serialiser
|
Pair<InputStream,Object> |
readObject(InputStream inputStream)
Retreieves an object from a stream.
|
ObjectOutputStream |
writeObject(Object object,
OutputStream outputStream)
Writes an object to the supplied stream.
|
public ObjectOutputStream writeObject(Object object, OutputStream outputStream) throws IOException
ObjectSerialiser
writeObject
in interface ObjectSerialiser
IOException
public Pair<InputStream,Object> readObject(InputStream inputStream) throws IOException, ClassNotFoundException
ObjectSerialiser
readObject
in interface ObjectSerialiser
IOException
ClassNotFoundException
public int getTag()
ObjectSerialiser
getTag
in interface ObjectSerialiser
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.