public interface MessageMarshaller<T> extends BaseMarshaller<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
MessageMarshaller.ProtoStreamReader
An high-level interface for the wire encoding of a Protobuf stream that allows reading named (and typed) message
fields.
|
static interface |
MessageMarshaller.ProtoStreamWriter
An high-level interface for the wire encoding of a Protobuf stream that allows writing named (and typed) message
fields.
|
Modifier and Type | Method and Description |
---|---|
T |
readFrom(MessageMarshaller.ProtoStreamReader reader)
Read the fields written by
writeTo(ProtoStreamWriter, Object) . |
void |
writeTo(MessageMarshaller.ProtoStreamWriter writer,
T t)
Write the fields defined in the schema.
|
getJavaClass, getTypeName
T readFrom(MessageMarshaller.ProtoStreamReader reader) throws IOException
writeTo(ProtoStreamWriter, Object)
. Should read them in the exact same order
as were written to ensure maximum performance. Not obeying the order will lead to poor performance and will cause
warnings to be logged but will still work.IOException
void writeTo(MessageMarshaller.ProtoStreamWriter writer, T t) throws IOException
IOException
Copyright © 2019 JBoss, a division of Red Hat. All rights reserved.