public interface Serialization
| Modifier and Type | Method and Description |
|---|---|
int |
getLengthLength()
The fixed number of bytes that will be written by
writeLength(ByteBuffer, int) and read by
readLength(ByteBuffer). |
Object |
read(Connection connection,
ByteBuffer buffer) |
int |
readLength(ByteBuffer buffer) |
void |
write(Connection connection,
ByteBuffer buffer,
Object object) |
void |
writeLength(ByteBuffer buffer,
int length) |
void write(Connection connection, ByteBuffer buffer, Object object)
connection - May be null.Object read(Connection connection, ByteBuffer buffer)
int getLengthLength()
writeLength(ByteBuffer, int) and read by
readLength(ByteBuffer).void writeLength(ByteBuffer buffer, int length)
int readLength(ByteBuffer buffer)
Copyright © 2014. All Rights Reserved.