Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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/dgc/VMID.java
/* * @(#)VMID.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.dgc; import java.io.*; import java.net.*; import java.rmi.server.UID; /** * A VMID is a identifier that is unique across all Java virtual * machines. VMIDs are used by the distributed garbage collector * to identify client VMs. * * @version 1.10, 12/10/01 * @author Ann Wollrath * @author Peter Jones */ public final class VMID implements java.io.Serializable { /** use serialVersionUID from prebeta for interoperability */ private static final long serialVersionUID = -538642295484486218L; /** array of bytes uniquely identifying this host */ private static byte[] localAddr; /** true if address for this host actually is unique */ private static boolean localAddrUnique; static { try { InetAddress localInetAddress = InetAddress.getLocalHost(); byte[] raw = localInetAddress.getAddress(); localAddr = raw; if (raw == null || // if local host unknown, ((raw[0] | raw[1] | raw[2] | raw[3]) == 0) || ((raw[0] == 127) && // or if it is localhost (127.0.0.1) (raw[1] == 0) && // (maybe because of applet) (raw[2] == 0) && // security manager?) (raw[3] == 1))) localAddrUnique = false; // then can't get unique host address else localAddrUnique = true; } catch (Exception e) { localAddr = null; localAddrUnique = false; } } /** array of bytes uniquely identifying host created on */ private byte[] addr; /** unique identifier with respect to host created on */ private UID uid; /** * Create a new VMID. Each new VMID returned from this constructor * is unique for all Java virtual machines under the following * conditions: a) the conditions for uniqueness for objects of * the class <b>java.rmi.server.UID</b> are satisfied, and b) an * address can be obtained for this host that is unique and constant * for the lifetime of this object. <p> * The static method <b>isUnique</b> can be invoked to determine * if an accurate address can be obtained for this host. */ public VMID() { addr = localAddr; uid = new UID(); } /** * Return true if an accurate address can be determined for this * host. If false, reliable VMID cannot be generated from this host * @return true if host address can be determined, false otherwise */ public static boolean isUnique() { return localAddrUnique; } /** * Compute hash code for this VMID. */ public int hashCode() { return uid.hashCode(); } /** * Compare this VMID to another, and return true if they are the * same identifier. */ public boolean equals(Object obj) { if ((obj != null) && (obj instanceof VMID)) { VMID vmid = (VMID) obj; if (!uid.equals(vmid.uid)) return false; if ((addr == null) ^ (vmid.addr == null)) return false; if (addr != null) { if (addr.length != vmid.addr.length) return false; for (int i = 0; i < addr.length; ++ i) if (addr[i] != vmid.addr[i]) return false; } return true; } else { return false; } } /** * Return string representation of this VMID. */ public String toString() { StringBuffer result = new StringBuffer(); if (addr != null) for (int i = 0; i < addr.length; ++ i) { if (i > 0) result.append('.'); result.append(Integer.toString(((int) addr[i]) & 0xFF, 10)); } result.append(':'); result.append(uid.toString()); return result.toString(); } }
⏎ java/rmi/dgc/VMID.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, 175281👍, 0💬
Popular Posts:
JDK 11 jdk.internal.vm.compiler .jmodis the JMOD file for JDK 11 Internal VM Compiler module. JDK 11...
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...
What Is commons-codec-1.4.jar? commons-codec-1.4.jar is the JAR file for Apache Commons Codec 1.4, w...
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jco...
How to perform XML Schema validation with dom\Writer.java provided in the Apache Xerces package? You...