public class StringBufferSerializer extends com.esotericsoftware.kryo.serialize.SimpleSerializer<StringBuffer>
Serializer for StringBuffer that serializes the String
representation, so that not the internal char array is serialized. This
reduces the number of serialized bytes.| Constructor and Description |
|---|
StringBufferSerializer(com.esotericsoftware.kryo.Kryo kryo) |
| Modifier and Type | Method and Description |
|---|---|
StringBuffer |
read(ByteBuffer buffer) |
void |
write(ByteBuffer buffer,
StringBuffer sb) |
readObjectData, writeObjectDatapublic StringBufferSerializer(com.esotericsoftware.kryo.Kryo kryo)
public StringBuffer read(ByteBuffer buffer)
read in class com.esotericsoftware.kryo.serialize.SimpleSerializer<StringBuffer>public void write(ByteBuffer buffer, StringBuffer sb)
write in class com.esotericsoftware.kryo.serialize.SimpleSerializer<StringBuffer>Copyright © 2010-2012. All Rights Reserved.