public class

UnicastRef2

extends UnicastRef
java.lang.Object
   ↳ sun.rmi.server.UnicastRef
     ↳ sun.rmi.server.UnicastRef2

Class Overview

NOTE: There is a JDK-internal dependency on the existence of this class and its getLiveRef method (inherited from UnicastRef) in the implementation of javax.management.remote.rmi.RMIConnector.

Summary

[Expand]
Inherited Constants
From interface java.rmi.server.RemoteRef
[Expand]
Inherited Fields
From class sun.rmi.server.UnicastRef
Public Constructors
UnicastRef2()
Create a new (empty) Unicast remote reference.
UnicastRef2(LiveRef liveRef)
Create a new Unicast RemoteRef.
Public Methods
String getRefClass(ObjectOutput out)
Returns the class of the ref type to be serialized
void readExternal(ObjectInput in)
Read in external representation for remote ref.
void writeExternal(ObjectOutput out)
Write out external representation for remote ref.
[Expand]
Inherited Methods
From class sun.rmi.server.UnicastRef
From class java.lang.Object
From interface java.io.Externalizable
From interface java.rmi.server.RemoteRef

Public Constructors

public UnicastRef2 ()

Create a new (empty) Unicast remote reference.

public UnicastRef2 (LiveRef liveRef)

Create a new Unicast RemoteRef.

Public Methods

public String getRefClass (ObjectOutput out)

Returns the class of the ref type to be serialized

Parameters
out the output stream to which the reference will be serialized
Returns
  • the class name (without package qualification) of the reference type

public void readExternal (ObjectInput in)

Read in external representation for remote ref.

Parameters
in the stream to read data from in order to restore the object
Throws
ClassNotFoundException If the class for an object being restored cannot be found.
IOException

public void writeExternal (ObjectOutput out)

Write out external representation for remote ref.

Parameters
out the stream to write the object to
Throws
IOException