public interface Marshaller
Modifier and Type | Method and Description |
---|---|
default int |
estimatedSize(Object arg)
Estimates the number of bytes needed to serialize an object to an output stream.
|
Object |
objectFromStream(DataInput in)
Creates an object from a stream
|
void |
objectToStream(Object obj,
DataOutput out)
Serializes an object to an output stream
|
default int estimatedSize(Object arg)
arg
- the object; argument to an RPC, or return value (could also be an exception). May be null (e.g. an
RPC returning void)void objectToStream(Object obj, DataOutput out) throws Exception
obj
- the object to be serializedout
- the output stream, created taking estimatedSize(Object)
into accountException
- thrown if serialization failedCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.