public interface Serialization
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserialize(byte[] bytes)
Deserialize object from byte array
|
java.lang.Object |
deserialize(java.io.InputStream is)
Deserialize object from stream
|
byte[] |
serialize(java.lang.Object object)
Serialize object to byte array
|
void |
serialize(java.lang.Object object,
java.io.OutputStream os)
Serialize object
object to stream os . |
void serialize(java.lang.Object object, java.io.OutputStream os)
object
to stream os
.
Stream isn't closed automatically after serialization.
User code should be close stream correctlyobject
- objectos
- output streamSerializationException
- in case of serialization problemsjava.lang.Object deserialize(java.io.InputStream is)
SerializationException
- in case of serialization problemsbyte[] serialize(java.lang.Object object)
SerializationException
- in case of serialization problemsjava.lang.Object deserialize(byte[] bytes)
SerializationException
- in case of serialization problems