public class ProtoSerializer<T,B extends com.google.protobuf.Message.Builder> extends Object implements InstanceSerializer<T>
| Constructor and Description |
|---|
ProtoSerializer(com.dyuproject.protostuff.Schema<B> readSchema,
com.dyuproject.protostuff.Schema<T> writeSchema) |
public T deserialize(byte[] raw) throws IOException
deserialize in interface InstanceSerializer<T>IOExceptionpublic byte[] serialize(T instance) throws IOException
serialize in interface InstanceSerializer<T>IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.