T - the type of this marshallerB - the builder type for reading embedded fieldspublic interface FieldSetMarshaller<T,B>
| Modifier and Type | Method and Description |
|---|---|
B |
getBuilder()
Returns a builder for use with
readField(ProtoStreamReader, int, Object). |
int |
getFields()
Returns the number of fields written by this marshaller.
|
B |
readField(ProtoStreamReader reader,
int index,
B builder)
Reads a single field from the specified reader at the specified index.
|
void |
writeFields(ProtoStreamWriter writer,
int startIndex,
T value)
Writes the set of fields from the specified object to the specified writer beginning at the specified index.
|
B getBuilder()
readField(ProtoStreamReader, int, Object).
May return a shared instance, if the builder type is immutable, or a new instance, if the builder is mutable.int getFields()
B readField(ProtoStreamReader reader, int index, B builder) throws IOException
reader - a ProtoStream readerindex - the field indexbuilder - the builder to be populated with the read fieldIOException - if the field could not be readvoid writeFields(ProtoStreamWriter writer, int startIndex, T value) throws IOException
writer - a ProtoStream writerstartIndex - the start index for the embedded fieldsvalue - the value to be writtenIOException - if the value could not be writtenCopyright © 2022 JBoss by Red Hat. All rights reserved.