T - the type of this marshallerpublic interface Marshallable<T>
| Modifier and Type | Method and Description |
|---|---|
Class<? extends T> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
T |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
default OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
T value)
Predicts the size of the specified object that would be written via the
writeTo(ProtoStreamWriter, Object) method. |
void |
writeTo(ProtoStreamWriter writer,
T value)
Writes the specified object to the specified writer.
|
T readFrom(ProtoStreamReader reader) throws IOException
reader - a ProtoStream readerIOException - if the object could not be readvoid writeTo(ProtoStreamWriter writer, T value) throws IOException
writer - a ProtoStream writervalue - the object to be writtenIOException - if the object could not be writtendefault OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, T value)
writeTo(ProtoStreamWriter, Object) method.context - a serialization contextvalue - the object whose size is to be determinedCopyright © 2021 JBoss by Red Hat. All rights reserved.