doReadRemoteInvocation

Perform the actual reading of an invocation result object from the
given ObjectInputStream.

The default implementation simply calls
ObjectInputStream.readObject().
Can be overridden for deserialization of a custom wrapper object rather
than the plain invocation, for example an encryption-aware holder.

Parameters:

ois - the ObjectInputStream to read from

Returns:

the RemoteInvocationResult object

Throws:

java.io.IOException - in case of I/O failure

java.lang.ClassNotFoundException - if case of a transferred class not
being found in the local ClassLoader

doWriteRemoteInvocationResult

Perform the actual writing of the given invocation result object
to the given ObjectOutputStream.

The default implementation simply calls
ObjectOutputStream.writeObject(java.lang.Object).
Can be overridden for serialization of a custom wrapper object rather
than the plain invocation, for example an encryption-aware holder.