public class KryoSerializer extends Object implements org.apache.wicket.serialize.ISerializer
| Constructor and Description |
|---|
KryoSerializer() |
KryoSerializer(org.apache.wicket.util.lang.Bytes bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
protected com.esotericsoftware.kryo.Kryo |
createKryo() |
Object |
deserialize(byte[] data) |
protected ByteBuffer |
getBuffer(Object target)
Creates the buffer that will be used to serialize the
target |
protected void |
init(com.esotericsoftware.kryo.Kryo kryo)
A method which can be overridden by users to do more configuration
|
byte[] |
serialize(Object object) |
public KryoSerializer()
public KryoSerializer(org.apache.wicket.util.lang.Bytes bufferSize)
protected com.esotericsoftware.kryo.Kryo createKryo()
public byte[] serialize(Object object)
serialize in interface org.apache.wicket.serialize.ISerializerpublic Object deserialize(byte[] data)
deserialize in interface org.apache.wicket.serialize.ISerializerprotected ByteBuffer getBuffer(Object target)
targettarget - the object that will be serialized. Can be used to decide dynamically what size to
usetargetprotected void init(com.esotericsoftware.kryo.Kryo kryo)
kryo - the Kryo instance to configureCopyright © 2015. All rights reserved.