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/sql/DataTruncation.java
/* * @(#)DataTruncation.java 1.7 01/12/10 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.sql; /** * <P>When JDBC unexpectedly truncates a data value, it reports a * DataTruncation warning (on reads) or throws a DataTruncation exception * (on writes). * * <P>The SQLstate for a DataTruncation is "01004". */ public class DataTruncation extends SQLWarning { /** * <P>Create a DataTruncation object. The SQLState is initialized * to 01004, the reason is set to "Data truncation" and the * vendorCode is set to the SQLException default. * * @param index The index of the parameter or column value * @param parameter true if a parameter value was truncated * @param read true if a read was truncated * @param dataSize the original size of the data * @param transferSize the size after truncation */ public DataTruncation(int index, boolean parameter, boolean read, int dataSize, int transferSize) { super("Data truncation", "01004"); this.index = index; this.parameter = parameter; this.read = read; this.dataSize = dataSize; this.transferSize = transferSize; DriverManager.println(" DataTruncation: index(" + index + ") parameter(" + parameter + ") read(" + read + ") data size(" + dataSize + ") transfer size(" + transferSize + ")"); } /** * Get the index of the column or parameter that was truncated. * * <P>This may be -1 if the column or parameter index is unknown, in * which case the "parameter" and "read" fields should be ignored. * * @return the index of the truncated paramter or column value. */ public int getIndex() { return index; } /** * Is this a truncated parameter value? * * @return True if the value was a parameter; false if it was a column value. */ public boolean getParameter() { return parameter; } /** * Was this a read truncation? * * @return True if the value was truncated when read from the database; false * if the data was truncated on a write. */ public boolean getRead() { return read; } /** * Get the number of bytes of data that should have been transferred. * This number may be approximate if data conversions were being * performed. The value may be "-1" if the size is unknown. * * @return the number of bytes of data that should have been transferred */ public int getDataSize() { return dataSize; } /** * Get the number of bytes of data actually transferred. * The value may be "-1" if the size is unknown. * * @return the number of bytes of data actually transferred */ public int getTransferSize() { return transferSize; } private int index; private boolean parameter; private boolean read; private int dataSize; private int transferSize; }
⏎ java/sql/DataTruncation.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, 198308👍, 0💬
Popular Posts:
JRE 8 deploy.jar is the JAR file for JRE 8 Java Control Panel and other deploy tools. JRE (Java Runt...
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...
What is the jaxp\TypeInfoWriter.java provided in the Apache Xerces package? I have Apache Xerces 2.1...