public class JavaToBinarySerializable extends java.io.ByteArrayOutputStream implements BinarySerializable
BinarySerializable
wrapping
of the native serialization
of Java.Constructor and Description |
---|
JavaToBinarySerializable(java.lang.Object object)
Creates an instance of a
serialized version of the object . |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
binaryDeserialize(BinaryInput input,
BinarySerializator serializator)
Deserialize a previously
stored object from input buffer. |
int |
binarySerialize(BinaryOutput output,
BinarySerializator serializator)
Binary-serialize this object into the
output . |
int |
getBinarySize(BinarySerializator serializator)
Returns the exact size of the binary-serialized version of this object in bytes.
|
public JavaToBinarySerializable(java.lang.Object object) throws java.io.IOException
serialized
version of the object
.object
- the object from which to create a serialized versionjava.io.IOException
- if there was an I/O error during serializationpublic int binarySerialize(BinaryOutput output, BinarySerializator serializator) throws java.io.IOException
BinarySerializable
output
.binarySerialize
in interface BinarySerializable
output
- the binary output that this object is serialized intoserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error during serializationpublic int getBinarySize(BinarySerializator serializator)
BinarySerializable
getBinarySize
in interface BinarySerializable
serializator
- the serializator used to write objectspublic static java.lang.Object binaryDeserialize(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
stored
object from input buffer.input
- the buffer from which to read the objectserializator
- the serializator used to read the datastored
objectjava.io.IOException
- if there was an I/O error during deserialization