public final class ProtocMessageMarshaller<T extends com.google.protobuf.MessageLite> extends Object implements RawProtobufMarshaller<T>
Constructor and Description |
---|
ProtocMessageMarshaller(Class<? extends T> clazz) |
ProtocMessageMarshaller(String typeName,
Class<? extends T> clazz) |
Modifier and Type | Method and Description |
---|---|
Class<? extends T> |
getJavaClass()
Returns the Java type handled by this marshaller.
|
String |
getTypeName()
Returns the full name of the message or enum type as declared in the protobuf file.
|
T |
readFrom(SerializationContext ctx,
RawProtoStreamReader in) |
void |
writeTo(SerializationContext ctx,
RawProtoStreamWriter out,
T o) |
public Class<? extends T> getJavaClass()
BaseMarshaller
getJavaClass
in interface BaseMarshaller<T extends com.google.protobuf.MessageLite>
public String getTypeName()
BaseMarshaller
getTypeName
in interface BaseMarshaller<T extends com.google.protobuf.MessageLite>
public T readFrom(SerializationContext ctx, RawProtoStreamReader in) throws IOException
readFrom
in interface RawProtobufMarshaller<T extends com.google.protobuf.MessageLite>
IOException
public void writeTo(SerializationContext ctx, RawProtoStreamWriter out, T o) throws IOException
writeTo
in interface RawProtobufMarshaller<T extends com.google.protobuf.MessageLite>
IOException
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.