java.io.DataInput (JDK 1.0)
This interface defines the methods required for streams that can read Java primitive data types in a machine-independent binary format. It is implemented by DataInputStream and RandomAccessFile. See DataInputStream for more information on the methods.
public abstract interfaceDataInput{ //Public Instance Methodspublic abstract booleanreadBoolean() throws IOException; public abstract bytereadByte() throws IOException; public abstract charreadChar() throws IOException; public abstract doublereadDouble() throws IOException; public abstract floatreadFloat() throws IOException; public abstract voidreadFully(byte[]b) throws IOException; public abstract voidreadFully(byte[]b, intoff, intlen) throws IOException; public abstract intreadInt() throws IOException; public abstract StringreadLine() throws IOException; public abstract longreadLong() throws IOException; public abstract shortreadShort() throws IOException; public abstract StringreadUTF() throws IOException; public abstract intreadUnsignedByte() throws IOException; public abstract intreadUnsignedShort() throws IOException; public abstract intskipBytes(intn) throws IOException; }
Extended By:
ObjectInput
Implemented By:
DataInputStream, RandomAccessFile
Passed To:
DataInputStream.readUTF()