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/sql/Time.java
/* * @(#)Time.java 1.8 01/12/10 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.sql; /** * <P>This class is a thin wrapper around java.util.Date that allows * JDBC to identify this as a SQL TIME value. It adds formatting and * parsing operations to support the JDBC escape syntax for time * values. */ public class Time extends java.util.Date { /** * Construct a Time Object * * @param hour 0 to 23 * @param minute 0 to 59 * @param second 0 to 59 */ public Time(int hour, int minute, int second) { super(70, 0, 1, hour, minute, second); } /** * Construct a Time using a milliseconds time value * * @param time milliseconds since January 1, 1970, 00:00:00 GMT */ public Time(long time) { // If the millisecond time value contains date info, mask it out. super(time); int hours = getHours(); int minutes = getMinutes(); int seconds = getSeconds(); super.setTime(0); setHours(hours); setMinutes(minutes); setSeconds(seconds); } /** * Set a Time using a milliseconds time value * * @param time milliseconds since January 1, 1970, 00:00:00 GMT */ public void setTime(long time) { // If the millisecond time value contains date info, mask it out. super.setTime(time); int hours = getHours(); int minutes = getMinutes(); int seconds = getSeconds(); super.setTime(0); setHours(hours); setMinutes(minutes); setSeconds(seconds); } /** * Convert a string in JDBC time escape format to a Time value * * @param s time in format "hh:mm:ss" * @return corresponding Time */ public static Time valueOf(String s) { int hour; int minute; int second; int firstColon; int secondColon; if (s == null) throw new java.lang.IllegalArgumentException(); firstColon = s.indexOf(':'); secondColon = s.indexOf(':', firstColon+1); if ((firstColon > 0) & (secondColon > 0) & (secondColon < s.length()-1)) { hour = Integer.parseInt(s.substring(0, firstColon)); minute = Integer.parseInt(s.substring(firstColon+1, secondColon)); second = Integer.parseInt(s.substring(secondColon+1)); } else { throw new java.lang.IllegalArgumentException(); } return new Time(hour, minute, second); } /** * Format a time in JDBC date escape format * * @return a String in hh:mm:ss format */ public String toString () { int hour = super.getHours(); int minute = super.getMinutes(); int second = super.getSeconds(); String hourString; String minuteString; String secondString; if (hour < 10) { hourString = "0" + hour; } else { hourString = Integer.toString(hour); } if (minute < 10) { minuteString = "0" + minute; } else { minuteString = Integer.toString(minute); } if (second < 10) { secondString = "0" + second; } else { secondString = Integer.toString(second); } return (hourString + ":" + minuteString + ":" + secondString); } // Override all the date operations inherited from java.util.Date; public int getYear() { throw new java.lang.IllegalArgumentException(); } public int getMonth() { throw new java.lang.IllegalArgumentException(); } public int getDay() { throw new java.lang.IllegalArgumentException(); } public int getDate() { throw new java.lang.IllegalArgumentException(); } public void setYear(int i) { throw new java.lang.IllegalArgumentException(); } public void setMonth(int i) { throw new java.lang.IllegalArgumentException(); } public void setDate(int i) { throw new java.lang.IllegalArgumentException(); } }
⏎ java/sql/Time.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, 178567👍, 0💬
Popular Posts:
A stream buffer is a stream-based representation of an XML infoset in Java. Stream buffers are desig...
maven-model-builder-3.8. 6.jaris the JAR file for Apache Maven 3.8.6 Model Builder module. Apache Ma...
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...
How to download and install ojdbc6.jar for Oracle 11g R2? ojdbc6.jar for Oracle 11g R2 is a Java 6, ...