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> Tcopy(T object)Deprecated.Returns a copy of the specfied object.<T> Tdecode(byte[] bytes)Deprecated.Deserializes the specified bytes into an object.<T> Tdecode(InputStream stream)Deprecated.Deserializes the specified bytes into an object.<T> Tdecode(ByteBuffer buffer)Deprecated.Deserializes the specified bytes into an object.byte[]encode(Object obj)Deprecated.Serializes the specified object into bytes.voidencode(Object obj, OutputStream stream)Deprecated.Serializes the specified object into bytes.voidencode(Object obj, ByteBuffer buffer)Deprecated.Serializes the specified object into bytes.static StoreSerializerusing(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:
encodein 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:
decodein 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:
copyin 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
-
-