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()
BaseMarshallergetJavaClass in interface BaseMarshaller<T extends com.google.protobuf.MessageLite>public String getTypeName()
BaseMarshallergetTypeName 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>IOExceptionpublic void writeTo(SerializationContext ctx, RawProtoStreamWriter out, T o) throws IOException
writeTo in interface RawProtobufMarshaller<T extends com.google.protobuf.MessageLite>IOExceptionCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.