Declared methods in this class can be used to precisely control the output of transferred objects.
public void | writeEnumObject( Writes the parameter as an enum. |
public void | writeObject( Writes the parameter object using the default write mechanism. |
public void | writeRemoteObject( Writes the parameter object as a remote object on the other endpoint. |
public void | Writes the parameter object as serialized data. |
public void | writeWrappedObject( Writes the parameter using the specified wrapper class. |
From: ObjectOutput |
From: DataOutput |
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.
Use ObjectInput.readObject() to read the object.
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.
Use ObjectInput.readObject() to read the object.
The serialization will occur as specified by RMIWrapper.
Use ObjectInput.readObject() to read the object.
null
.