Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
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/ObjID.java
/* * @(#)ObjID.java 1.10 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.io.ObjectInput; import java.io.ObjectOutput; /** * The class ObjID is used to identify remote objects uniquely in a VM * over time. Each identifier contains an object number and an address * space identifier that is unique with respect to a specific host. An * object identifier is assigned to a remote object when it is * exported. */ public final class ObjID implements java.io.Serializable { private static final long serialVersionUID = -6386392263968365220L; /** well-known id for the registry */ public static final int REGISTRY_ID = 0; /** well-known id for the distributed garbage collector */ public static final int DGC_ID = 2; /** object number */ private long objNum; /** address space identifier (unique to host) */ private UID space; private static long nextNum = 0; private final static UID mySpace = new UID(); /** * Generate unique object identifier. */ public ObjID () { synchronized (mySpace) { space = mySpace; objNum = nextNum++; } } /** * Generate a "well-known" object ID. An object ID generated via * this constructor will not clash with any object IDs generated * via the default constructor. * @param num a unique well-known object number */ public ObjID (int num) { space = new UID((short)0); objNum = num; } /** * Private constructor for creating an object ID given its contents * that is read from a stream. */ private ObjID(long objNum, UID space) { this.objNum = objNum; this.space = space; } /** * Marshal object id to output stream. */ public void write(ObjectOutput out) throws java.io.IOException { out.writeLong(objNum); space.write(out); } /** * The read method constructs an object id whose contents is read * from the specified input stream. */ public static ObjID read(ObjectInput in) throws java.io.IOException { long num = in.readLong(); UID space = UID.read(in); return new ObjID(num, space); } /** * The hashcode is the object number. */ public int hashCode() { return (int) objNum; } /** * Two object identifiers are considered equal if they have the * same contents. */ public boolean equals(Object obj) { if ((obj != null) && (obj instanceof ObjID)) { ObjID id = (ObjID)obj; return (objNum == id.objNum && space.equals(id.space)); } else { return false; } } /** * Returns a string containing the object id representation. The * address space identifier is included in the string * representation only if the object id is from a non-local * address space. */ public String toString() { return "[" + (space.equals(mySpace) ? "" : space + ", ") + objNum + "]"; } }
⏎ java/rmi/server/ObjID.java
Â
⇒ Backup JDK 1.1 Installation Directory
⇠JDK 1.1 classes.zip - Java Core Classes
2018-11-17, 92046👍, 0💬
Popular Posts:
How to read XML document from socket connections with the socket\DelayedInput.java provided in the A...
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...
The JMX technology provides the tools for building distributed, Web-based, modular and dynamic solut...
What Is HttpComponents commons-httpclient-3.1.j ar?HttpComponents commons-httpclient-3.1.j aris the ...
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...