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 Serializer
public byte[] write(byte[] object) throws IOException
ByteArraySerializer
write
in interface ByteArraySerializer<byte[]>
object
- that will be serializedIOException
public byte[] read(byte[] buffer) throws IOException
ByteArraySerializer
read
in interface ByteArraySerializer<byte[]>
buffer
- that object will be read fromIOException
public void destroy()
Serializer
destroy
in interface Serializer
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.