public class JsonSerialization extends Object implements Serialization
| Constructor and Description |
|---|
JsonSerialization() |
| Modifier and Type | Method and Description |
|---|---|
int |
getLengthLength()
The fixed number of bytes that will be written by
Serialization.writeLength(ByteBuffer, int) and read by
Serialization.readLength(ByteBuffer). |
Object |
read(Connection connection,
ByteBuffer buffer) |
int |
readLength(ByteBuffer buffer) |
void |
setLogging(boolean logging,
boolean prettyPrint) |
void |
write(Connection connection,
ByteBuffer buffer,
Object object) |
void |
writeLength(ByteBuffer buffer,
int length) |
public void setLogging(boolean logging,
boolean prettyPrint)
public void write(Connection connection, ByteBuffer buffer, Object object)
write in interface Serializationconnection - May be null.public Object read(Connection connection, ByteBuffer buffer)
read in interface Serializationpublic void writeLength(ByteBuffer buffer, int length)
writeLength in interface Serializationpublic int readLength(ByteBuffer buffer)
readLength in interface Serializationpublic int getLengthLength()
SerializationSerialization.writeLength(ByteBuffer, int) and read by
Serialization.readLength(ByteBuffer).getLengthLength in interface SerializationCopyright © 2014. All Rights Reserved.