public class ProtoSerializer<T,B extends com.google.protobuf.Message.Builder> extends Object implements InstanceSerializer<T>
| Constructor and Description |
|---|
ProtoSerializer(io.protostuff.Schema<B> readSchema,
io.protostuff.Schema<T> writeSchema) |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(byte[] raw) |
boolean |
equals(Object obj) |
int |
hashCode() |
byte[] |
serialize(T instance) |
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 © 2022 The Apache Software Foundation. All rights reserved.