public class CGLibProxySerializer extends com.esotericsoftware.kryo.serialize.SimpleSerializer<Object>
CGLibProxySerializer.CGLibProxyMarker class.
When the serializer for a certain class is requested (via Kryo.newSerializer(Class))
canSerialize(Class) has to be checked with the provided class to see if
a CGLibProxySerializer should be returned.| Modifier and Type | Class and Description |
|---|---|
static interface |
CGLibProxySerializer.CGLibProxyMarker
This class is used as a marker class - written to the class attribute
on serialization and checked on deserialization (via
CGLibProxyFormat#canConvert(Class). |
| Constructor and Description |
|---|
CGLibProxySerializer(com.esotericsoftware.kryo.Kryo kryo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canSerialize(Class<?> cls) |
Object |
read(ByteBuffer buffer) |
void |
write(ByteBuffer buffer,
Object obj) |
readObjectData, writeObjectDatapublic CGLibProxySerializer(com.esotericsoftware.kryo.Kryo kryo)
kryo - the kryo instance.public static boolean canSerialize(Class<?> cls)
public Object read(ByteBuffer buffer)
read in class com.esotericsoftware.kryo.serialize.SimpleSerializer<Object>public void write(ByteBuffer buffer, Object obj)
write in class com.esotericsoftware.kryo.serialize.SimpleSerializer<Object>Copyright © 2010-2012. All Rights Reserved.