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/DataInput.java

/*
 * @(#)DataInput.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.io;

/**
 * The data input interface is implemented by streams that can read 
 * primitive Java data types from a stream in a machine-independent 
 * manner. 
 *
 * @author  Frank Yellin
 * @version 1.10, 12/10/01
 * @see     java.io.DataInputStream 
 * @see     java.io.DataOutput  
 * @since   JDK1.0
 */
public
interface DataInput {
    /**
     * Reads <code>b.length</code> bytes into the byte array. This 
     * method blocks until all the bytes are read. 
     *
     * @param     b   the buffer into which the data is read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    void readFully(byte b[]) throws IOException;

    /**
     * Reads <code>b.length</code> bytes into the byte array. This 
     * method blocks until all the bytes are read. 
     *
     * @param     b   the buffer into which the data is read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since   JDK1.0
     */
    void readFully(byte b[], int off, int len) throws IOException;

    /**
     * Skips exactly <code>n</code> bytes of input. 
     *
     * @param      n   the number of bytes to be skipped.
     * @return     the number of bytes skipped, which is always <code>n</code>.
     * @exception  EOFException  if this stream reaches the end before skipping
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    int skipBytes(int n) throws IOException;

    /**
     * Reads a <code>boolean</code> value from the input stream. 
     *
     * @return     the <code>boolean</code> value read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    boolean readBoolean() throws IOException;

    /**
     * Reads a signed 8-bit value from the input stream. 
     *
     * @return     the 8-bit value read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    byte readByte() throws IOException;

    /**
     * Reads an unsigned 8-bit value from the input stream. 
     *
     * @return     the unsigned 8-bit value read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    int readUnsignedByte() throws IOException;

    /**
     * Reads a 16-bit value from the input stream. 
     *
     * @return     the 16-bit value read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    short readShort() throws IOException;

    /**
     * Reads an unsigned 16-bit value from the input stream. 
     *
     * @return     the unsigned 16-bit value read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    int readUnsignedShort() throws IOException;

    /**
     * Reads a Unicode <code>char</code> value from the input stream. 
     *
     * @return     the Unicode <code>char</code> read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    char readChar() throws IOException;

    /**
     * Reads an <code>int</code> value from the input stream. 
     *
     * @return     the <code>int</code> value read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    int readInt() throws IOException;

    /**
     * Reads a <code>long</code> value from the input stream. 
     *
     * @return     the <code>long</code> value read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    long readLong() throws IOException;

    /**
     * Reads a <code>float</code> value from the input stream. 
     *
     * @return     the <code>float</code> value read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    float readFloat() throws IOException;

    /**
     * Reads a <code>double</code> value from the input stream. 
     *
     * @return     the <code>double</code> value read.
     * @exception  EOFException  if this stream reaches the end before reading
     *               all the bytes.
     * @exception  IOException   if an I/O error occurs.
     * @since      JDK1.0
     */
    double readDouble() throws IOException;

    /**
     * Reads the next line of text from the input stream. 
     *
     * @return     if this stream reaches the end before reading all the bytes.
     * @exception  IOException  if an I/O error occurs.
     * @since      JDK1.0
     */
    String readLine() throws IOException;

    /**
     * Reads in a string that has been encoded using a modified UTF-8 format.
     * <p>
     * For an exact description of this method, see the discussion in 
     * Gosling, Joy, and Steele, <i>The Java Language Specification</i>. 
     *
     * @return     a Unicode string.
     * @exception  EOFException            if this stream reaches the end
     *               before reading all the bytes.
     * @exception  IOException             if an I/O error occurs.
     * @exception  UTFDataFormatException  if the bytes do not represent a
     *               valid UTF-8 encoding of a string.
     * @since      JDK1.0
     */
    String readUTF() throws IOException;
}

java/io/DataInput.java

 

Backup JDK 1.1 Installation Directory

JDK 1.1 classes.zip - Java Core Classes

Download and Review JDK 1.1

⇑⇑ FAQ for JDK (Java Development Kit)

2018-11-17, 38375👍, 0💬