public static final class ConstantSerializers.TheByteArraySerializer extends Object implements ByteArraySerializer<byte[]>
| Constructor and Description |
|---|
TheByteArraySerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called when instance is shutting down.
|
int |
getTypeId() |
byte[] |
read(byte[] buffer)
Converts given byte array to object
|
byte[] |
write(byte[] object)
Converts given object to byte array
|
public int getTypeId()
getTypeId in interface Serializerpublic byte[] write(byte[] object)
throws IOException
ByteArraySerializerwrite in interface ByteArraySerializer<byte[]>object - that will be serializedIOExceptionpublic byte[] read(byte[] buffer)
throws IOException
ByteArraySerializerread in interface ByteArraySerializer<byte[]>buffer - that object will be read fromIOExceptionpublic void destroy()
Serializerdestroy in interface SerializerCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.