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/io/ObjectStreamField.java
/*
* @(#)ObjectStreamField.java 1.11 01/12/10
*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package java.io;
/**
* A description of a field in a class.
*
* @author unascribed
* @version 1.11, 12/10/01
*/
class ObjectStreamField {
ObjectStreamField(String n, char t, int o, String ts)
{
// System.out.println("new field, " + n + " " + t + " " + ts);
name = n;
type = t;
offset = o;
typeString = ts;
}
/*
* Default constructor creates an empty field.
* Usually used just to get to the sort functions.
*/
ObjectStreamField() {
}
/**
* test if this field is a primitive or not.
*/
boolean isPrimitive() {
return (type != '[' && type != 'L');
}
/**
* Compare this with another ObjectStreamField.
* return -1 if this is smaller, 0 if equal, 1 if greater
* types that are primitives are "smaller" than objects.
* if equal, the names are compared.
*/
int compare(ObjectStreamField other) {
boolean thisprim = (typeString == null);
boolean otherprim = (other.typeString == null);
if (thisprim != otherprim) {
return (thisprim ? -1 : 1);
}
return name.compareTo(other.name);
}
/**
* Compare the types of two class descriptors.
* The match if they have the same primitive types.
* or if they are both objects and the object types match.
*/
boolean typeEquals(ObjectStreamField other) {
if (other == null || type != other.type)
return false;
/* Return true if the primitive types matched */
if (typeString == null && other.typeString == null)
return true;
return ObjectStreamClass.compareClassNames(typeString,
other.typeString,
'/');
}
/**
* Return a string describing this field.
*/
public String toString() {
if (typeString != null)
return typeString + " " + name + " @" + offset;
else
return type + " " + name + " @" + offset;
}
String name; // the name of the field
char type; // type first byte of the type signature
int offset; // Offset into the object of the field
String typeString; // iff object, typename
}
⏎ java/io/ObjectStreamField.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, ≈309🔥, 0💬
Popular Posts:
JDK 11 jdk.compiler.jmod is the JMOD file for JDK 11 Compiler tool, which can be invoked by the "jav...
How to download and install ojdbc11.jar for Oracle 21c? ojdbc11.jar for Oracle 21c is a Java JDBC Dr...
How to perform XML Schema validation with dom\Writer.java provided in the Apache Xerces package? You...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
Where to get the Java source code for Connector/J 8.0 User Impl module? Java source code files for C...