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) . |
java.lang.Object |
read(Connection connection,
java.nio.ByteBuffer buffer) |
int |
readLength(java.nio.ByteBuffer buffer) |
void |
write(Connection connection,
java.nio.ByteBuffer buffer,
java.lang.Object object) |
void |
writeLength(java.nio.ByteBuffer buffer,
int length) |
void write(Connection connection, java.nio.ByteBuffer buffer, java.lang.Object object)
connection
- May be null.java.lang.Object read(Connection connection, java.nio.ByteBuffer buffer)
int getLengthLength()
writeLength(ByteBuffer, int)
and read by
readLength(ByteBuffer)
.void writeLength(java.nio.ByteBuffer buffer, int length)
int readLength(java.nio.ByteBuffer buffer)