Categories:
Audio (13)
Biotech (29)
Bytecode (22)
Database (79)
Framework (7)
Game (7)
General (497)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (70)
JavaBeans (16)
JDBC (86)
JDK (338)
JSP (20)
Logging (90)
Mail (54)
Messaging (8)
Network (106)
PDF (82)
Report (7)
Scripting (75)
Security (67)
Server (112)
Servlet (17)
SOAP (24)
Testing (55)
Web (24)
XML (287)
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
⇒ Backup JDK 1.1 Installation Directory
2018-11-17, 38401👍, 0💬
Popular Posts:
What Is Apache XMLBeans-2.6.0.zip file? Apache XMLBeans-2.6.0.zip file is the distribution package Z...
What Is javamail1_1_3.zip? javamail1_1_3.zip is the binary package of JavaMail API 1.1.3 in ZIP form...
XStream is a simple library to serialize objects to XML and back again. JAR File Size and Download L...
What Is commons-net-ftp-2.0.jar? commons-net-ftp-2.0.jar is the JAR file for Apache Commons Net FTP ...
The SOAP with Attachments API for JavaTM (SAAJ) 1.3 provides the API for creating and sending SOAP m...