Top Description Methods
org.h2.api

public Interface JavaObjectSerializer


Custom serialization mechanism for java objects being stored in column of type OTHER.
Author
Sergi Vladykin

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the object
deserialize
(byte[]
the byte array of the serialized object
bytes
)

Deserialize object from byte array.

public byte[]

Returns:

the byte array of the serialized object
serialize
(Object
the object to serialize
obj
)

Serialize object to byte array.

Method Detail

deserializeback to summary
public Object deserialize(byte[] bytes) throws Exception

Deserialize object from byte array.

Parameters
bytes:byte[]

the byte array of the serialized object

Returns:Object

the object

Exceptions
Exception:
on failure
serializeback to summary
public byte[] serialize(Object obj) throws Exception

Serialize object to byte array.

Parameters
obj:Object

the object to serialize

Returns:byte[]

the byte array of the serialized object

Exceptions
Exception:
on failure