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.
|
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 writtenCopyright © 2021 JBoss by Red Hat. All rights reserved.