is new.
MarshalledObject<T>
java.lang.Objectjava.rmi.MarshalledObject<T>
java.rmi.MarshalledObject
Type Parameters:
T - the type of the object contained in this MarshalledObject
public final classMarshalledObject<T>
MarshalledObject
A MarshalledObject contains a byte stream with the serialized representation of an object given to its constructor. The get method returns a new copy of the original object, as deserialized from the contained byte stream. The contained object is serialized and deserialized with the same serialization semantics used for marshaling and unmarshaling parameters and return values of RMI calls: When the serialized form is created:
When copy of the object is retrieved (via the get method), if the class is not available locally, it will be loaded from the appropriate location (specified the URL annotated with the class descriptor when the class was serialized.
MarshalledObject facilitates passing objects in RMI calls that are not automatically deserialized immediately by the remote peer.
| Constructor Summary | |
|---|---|
MarshalledObject
T
Creates a new MarshalledObject that contains the serialized representation of the current state of the supplied object. |
|
| Method Summary | |
|---|---|
| boolean |
equals
(
Object
obj) Compares this MarshalledObject to another object. |
T
|
get
() Returns a new copy of the contained marshalledobject. |
| int |
hashCode
() Return a hash code for this MarshalledObject. |
| Methods inherited from class java.lang. Object |
|---|
| clone , finalize , getClass , notify , notifyAll , toString , wait , wait , wait |
| Constructor Detail |
|---|
public MarshalledObject(T
Objectobj) throws IOException
| Method Detail |
|---|
publicT
Objectget() throws IOException, ClassNotFoundException
public int hashCode()
public boolean equals(Object obj)