Declared methods in this class can be used to precisely control the output of transferred objects.
Writes the parameter as an enum.
Writes the parameter object using the default write mechanism.
Writes the parameter object as a remote object on the other endpoint.
Writes the parameter object as serialized data.
Writes the parameter using the specified wrapper class.
The object will be read on the receiver side and any calls made to it will be called on the parameter local instance.
If the parameter is already a remote object on the other endpoint then the other side will receive the local instance to it. Therefore the received object will identity equal to the remote object denoted by this parameter instance.
The object will be serialized using ObjectOutputStream and resulting bytes will be transferred. If the parameter is a remote object, then it will not be serialized but received as the local instance on the other endpoint. ObjectInputStream will be used to read the transferred data.
The serialization will occur as specified by RMIWrapper.