All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.rmi.MarshalledObject
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, classes are annotated with a codebase URL
from where the class can be loaded (if available), and when copies of
the object are retrieved, if the bytecodes for a class is not available
locally, they will be loaded from the annotated URL. Also, Remote
objects are replaced with their proxy stubs during serialization.
MarshalledObject
facilitates passing objects in RMI calls that
are not automatically deserialized immediately by the remote peer.
MarshalledObject
that contains the serialized
representation of the current state of the supplied object.
MarshalledObject
to another object.
MarshalledObject
.
public MarshalledObject(Object obj) throws IOException
MarshalledObject
that contains the serialized
representation of the current state of the supplied object. The
object is serialized with the semantics used for marshaling
parameters for RMI calls.
public Object get() throws IOException, ClassNotFoundException
public int hashCode()
MarshalledObject
.
public boolean equals(Object obj)
MarshalledObject
to another object.
Return true if and only if the argument refers to a
MarshalledObject
that contains exactly the same
serialized representation of an object as this one does.
MarshalledObject
against
true
if the argument contains an equaivalent
serialized objectAll Packages Class Hierarchy This Package Previous Next Index