APIdia Launch Partner
Top Description Fields Constructors Methods
sun.rmi.server

public Class UnicastRef2

extends UnicastRef
Class Inheritance
Imports
java.io.IOException, .ObjectInput, .ObjectOutput, sun.rmi.transport.LiveRef

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.

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from sun.rmi.server.UnicastRef:
clientCallLogclientRefLogref

Constructor Summary

AccessConstructor and Description
public
UnicastRef2()

Create a new (empty) Unicast remote reference.

public
UnicastRef2(LiveRef liveRef)

Create a new Unicast RemoteRef.

Method Summary

Modifier and TypeMethod and Description
public String
getRefClass(ObjectOutput out)

Overrides sun.rmi.server.UnicastRef.getRefClass.

Implements java.rmi.server.RemoteRef.getRefClass.

Returns the class of the ref type to be serialized

public void
readExternal(ObjectInput in)

Overrides sun.rmi.server.UnicastRef.readExternal.

Implements java.io.Externalizable.readExternal.

Read in external representation for remote ref.

public void
writeExternal(ObjectOutput out)

Overrides sun.rmi.server.UnicastRef.writeExternal.

Implements java.io.Externalizable.writeExternal.

Write out external representation for remote ref.

Inherited from sun.rmi.server.UnicastRef:
donegetLiveRefinvokeinvokelogClientCallmarshalCustomCallDatamarshalValuenewCallremoteEqualsremoteHashCoderemoteToStringunmarshalValue

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides sun.rmi.server.UnicastRef.serialVersionUID, java.rmi.server.RemoteRef.serialVersionUID.

Constructor Detail

UnicastRef2back to summary
public UnicastRef2()

Create a new (empty) Unicast remote reference.

UnicastRef2back to summary
public UnicastRef2(LiveRef liveRef)

Create a new Unicast RemoteRef.

Method Detail

getRefClassback to summary
public String getRefClass(ObjectOutput out)

Overrides sun.rmi.server.UnicastRef.getRefClass.

Implements java.rmi.server.RemoteRef.getRefClass.

Returns the class of the ref type to be serialized

readExternalback to summary
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException

Overrides sun.rmi.server.UnicastRef.readExternal.

Implements java.io.Externalizable.readExternal.

Read in external representation for remote ref.

Exceptions
IOException:

Doc from java.io.Externalizable.readExternal.

if I/O errors occur

ClassNotFoundException:
If the class for an object being restored cannot be found.
writeExternalback to summary
public void writeExternal(ObjectOutput out) throws IOException

Overrides sun.rmi.server.UnicastRef.writeExternal.

Implements java.io.Externalizable.writeExternal.

Write out external representation for remote ref.

Exceptions
IOException:

Doc from java.io.Externalizable.writeExternal.

Includes any I/O exceptions that may occur