|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of serialized objectpublic interface ByteArraySerializer<T>
For sample usage custom serialization and other way of custom serialization
see StreamSerializer
.
Note that read and write methods should be compatible
Method Summary | |
---|---|
T |
read(byte[] buffer)
Converts given byte array to object |
byte[] |
write(T object)
Converts given object to byte array |
Methods inherited from interface com.hazelcast.nio.serialization.Serializer |
---|
destroy, getTypeId |
Method Detail |
---|
byte[] write(T object) throws IOException
object
- that will be serialized
IOException
T read(byte[] buffer) throws IOException
buffer
- that object will be read from
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |