public class ResultSerializer extends java.lang.Object implements Serializer<Result>
构造器和说明 |
---|
ResultSerializer(Serializer<java.lang.Object> returnSerializer)
自定义参数序列化器
|
限定符和类型 | 方法和说明 |
---|---|
Result |
deserialize(java.io.InputStream in)
手动反序列化
|
static ResultSerializer |
getDefault() |
void |
serialize(Result obj,
java.io.OutputStream out)
序列化到out
|
public ResultSerializer(Serializer<java.lang.Object> returnSerializer)
public static ResultSerializer getDefault()
public void serialize(Result obj, java.io.OutputStream out) throws java.lang.Exception
Serializer
serialize
在接口中 Serializer<Result>
java.lang.Exception
public Result deserialize(java.io.InputStream in) throws java.lang.Exception
Serializer
deserialize
在接口中 Serializer<Result>
java.lang.Exception