public abstract class PyroSerializer extends Object
Modifier and Type | Field and Description |
---|---|
protected static Map<Config.SerializerType,PyroSerializer> |
AvailableSerializers |
protected static PickleSerializer |
pickleSerializer |
protected static SerpentSerializer |
serpentSerializer |
Constructor and Description |
---|
PyroSerializer() |
Modifier and Type | Method and Description |
---|---|
static int |
compareLibraryVersions(String actual,
String other) |
abstract Object |
deserializeData(byte[] data) |
static PyroSerializer |
getFor(Config.SerializerType type) |
static PyroSerializer |
getFor(int serializer_id) |
abstract int |
getSerializerId() |
abstract byte[] |
serializeCall(String objectId,
String method,
Object[] vargs,
Map<String,Object> kwargs) |
abstract byte[] |
serializeData(Object obj) |
protected static Map<Config.SerializerType,PyroSerializer> AvailableSerializers
protected static PickleSerializer pickleSerializer
protected static SerpentSerializer serpentSerializer
public abstract int getSerializerId()
public abstract byte[] serializeCall(String objectId, String method, Object[] vargs, Map<String,Object> kwargs) throws IOException
IOException
public abstract byte[] serializeData(Object obj) throws IOException
IOException
public abstract Object deserializeData(byte[] data) throws IOException
IOException
public static PyroSerializer getFor(Config.SerializerType type)
public static PyroSerializer getFor(int serializer_id)
Copyright © 2016. All Rights Reserved.