类 SingleProtobufSerialization
- java.lang.Object
-
- org.apache.dubbo.rpc.protocol.tri.SingleProtobufSerialization
-
public class SingleProtobufSerialization extends Object
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSingleProtobufSerialization.SingleMessageMarshaller<T extends com.google.protobuf.MessageLite>
-
构造器概要
构造器 构造器 说明 SingleProtobufSerialization()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static com.google.protobuf.MessagedefaultInst(Class<?> clz)Objectdeserialize(InputStream in, Class<?> clz)static <T> com.google.protobuf.Parser<T>getParser(Class<T> clz)voidserialize(Object obj, OutputStream os)
-
-
-
方法详细资料
-
defaultInst
public static com.google.protobuf.Message defaultInst(Class<?> clz)
-
getParser
public static <T> com.google.protobuf.Parser<T> getParser(Class<T> clz)
-
deserialize
public Object deserialize(InputStream in, Class<?> clz) throws IOException
- 抛出:
IOException
-
serialize
public void serialize(Object obj, OutputStream os) throws IOException
- 抛出:
IOException
-
-