Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 1.1 Source Code Directory
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes:
"C:\fyicenter\jdk-1.1.8\src".
Here is the list of Java classes of the JDK 1.1 source code:
✍: FYIcenter
⏎ java/rmi/server/UnicastRemoteObject.java
/*
* @(#)UnicastRemoteObject.java 1.13 01/12/10
*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package java.rmi.server;
import java.rmi.*;
/**
* The UnicastRemoteObject class defines a non-replicated remote
* object whose references are valid only while the server process is
* alive. The UnicastRemoteObject class provides support for
* point-to-point active object references (invocations, parameters,
* and results) using TCP streams. <p>
*
* Objects that require remote behavior should extend RemoteObject,
* typically via UnicastRemoteObject. If UnicastRemoteObject is not
* extended, the implementation class must then assume the
* responsibility for the correct semantics of the hashCode, equals,
* and toString methods inherited from the Object class, so that they
* behave appropriately for remote objects.
*/
public class UnicastRemoteObject extends RemoteServer {
private static final long serialVersionUID = 4974527148936298033L;
/**
* Create and export a new UnicastRemoteObject object using an
* anonymous port.
*/
protected UnicastRemoteObject() throws RemoteException
{
exportObject((Remote)this);
}
/**
* Re-export the remote object when it is deserialized.
*/
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException, java.lang.ClassNotFoundException
{
exportObject((Remote)this);
}
/**
* Returns a clone of the remote object that is distinct from
* the original.
*
* @exception CloneNotSupportedException if clone failed due to
* a RemoteException.
* @return the new remote object
*/
public Object clone() throws CloneNotSupportedException
{
try {
UnicastRemoteObject remote = (UnicastRemoteObject)super.clone();
exportObject(remote);
return remote;
} catch (RemoteException e) {
throw new ServerCloneException("Clone failed", e);
}
}
/**
* Export the remote object to make it available to receive incoming calls.
* @param obj the remote object to be exported
* @exception RemoteException if export fails
*/
public static RemoteStub exportObject(Remote obj)
throws RemoteException
{
/* Server ref must be created and assigned before remote object
* can be exported.
*/
try {
Class refClass = Class.forName(RemoteRef.packagePrefix +
".UnicastServerRef");
Object refObj = refClass.newInstance();
if (refObj instanceof ServerRef) {
ServerRef serverRef = (ServerRef)refObj;
if (obj instanceof UnicastRemoteObject)
((UnicastRemoteObject)obj).ref = serverRef;
return serverRef.exportObject(obj, null);
} else {
throw new ExportException("Reference is not a java.rmi.server.ServerRef");
}
} catch (Exception e) {
throw new ExportException("Unable to create remote reference", e);
}
}
}
⏎ java/rmi/server/UnicastRemoteObject.java
Or download all of them as a single archive file:
File name: jdk-1.1.8-src.zip File size: 1574187 bytes Release date: 2018-11-16 Download
⇒ Backup JDK 1.1 Installation Directory
2018-11-17, ≈358🔥, 0💬
Popular Posts:
The Jakarta-ORO Java classes are a set of text-processing Java classes that provide Perl5 compatible...
What Is junit-3.8.1.jar? junit-3.8.1.jar is the version 3.8.1 of JUnit JAR library file. JUnit is a ...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
JDK 11 java.smartcardio.jmod is the JMOD file for JDK 11 Smartcardio module. JDK 11 Smart Card IO mo...
JDK 17 jdk.hotspot.agent.jmod is the JMOD file for JDK 17 Hotspot Agent module. JDK 17 Hotspot Agent...