Interface StoreSerializer
-
- All Superinterfaces:
Serializer
@Deprecated public interface StoreSerializer extends Serializer
Deprecated.since 1.11 ("Loon")Service to serialize Objects into byte array.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T> T
copy(T object)
Deprecated.Returns a copy of the specfied object.<T> T
decode(byte[] bytes)
Deprecated.Deserializes the specified bytes into an object.<T> T
decode(InputStream stream)
Deprecated.Deserializes the specified bytes into an object.<T> T
decode(ByteBuffer buffer)
Deprecated.Deserializes the specified bytes into an object.byte[]
encode(Object obj)
Deprecated.Serializes the specified object into bytes.void
encode(Object obj, OutputStream stream)
Deprecated.Serializes the specified object into bytes.void
encode(Object obj, ByteBuffer buffer)
Deprecated.Serializes the specified object into bytes.static StoreSerializer
using(KryoNamespace ns)
Deprecated.Creates a new StoreSerializer instance from a KryoNamespace.
-
-
-
Method Detail
-
encode
byte[] encode(Object obj)
Deprecated.Serializes the specified object into bytes.- Specified by:
encode
in interfaceSerializer
- Parameters:
obj
- object to be serialized- Returns:
- serialized bytes
-
encode
void encode(Object obj, ByteBuffer buffer)
Deprecated.Serializes the specified object into bytes.- Parameters:
obj
- object to be serializedbuffer
- to write serialized bytes
-
encode
void encode(Object obj, OutputStream stream)
Deprecated.Serializes the specified object into bytes.- Parameters:
obj
- object to be serializedstream
- to write serialized bytes
-
decode
<T> T decode(byte[] bytes)
Deprecated.Deserializes the specified bytes into an object.- Specified by:
decode
in interfaceSerializer
- Type Parameters:
T
- decoded type- Parameters:
bytes
- bytes to be deserialized- Returns:
- deserialized object
-
decode
<T> T decode(ByteBuffer buffer)
Deprecated.Deserializes the specified bytes into an object.- Type Parameters:
T
- decoded type- Parameters:
buffer
- bytes to be deserialized- Returns:
- deserialized object
-
decode
<T> T decode(InputStream stream)
Deprecated.Deserializes the specified bytes into an object.- Type Parameters:
T
- decoded type- Parameters:
stream
- stream containing the bytes to be deserialized- Returns:
- deserialized object
-
copy
<T> T copy(T object)
Deprecated.Returns a copy of the specfied object.- Specified by:
copy
in interfaceSerializer
- Type Parameters:
T
- object type- Parameters:
object
- object to copy- Returns:
- a copy of the object
-
using
static StoreSerializer using(KryoNamespace ns)
Deprecated.Creates a new StoreSerializer instance from a KryoNamespace.- Parameters:
ns
- kryo namespace- Returns:
- StoreSerializer instance
-
-