DataInputStream Members

DataInputStream Members

Class Overview | This Package | All Packages

Constructors
Name Description
DataInputStream(InputStream) Creates a new data input stream to read data from the specified input stream.

Methods
Name Description
read(byte[]) Reads up to byte.length bytes of data from this data input stream into an array of bytes.
read(byte[], int, int) Reads up to len bytes of data from this data input stream into an array of bytes.
readBoolean() Reads a boolean from this data input stream.
readByte() Reads a signed 8-bit value from this data input stream.
readChar() Reads a Unicode character from this data input stream.
readDouble() Reads a double from this data input stream.
readFloat() Reads a float from this data input stream.
readFully(byte[]) Reads b.length bytes from this data input stream into the byte array.
readFully(byte[], int, int) Reads exactly len bytes from this data input stream into the byte array.
readInt() Reads a signed 32-bit integer from this data input stream.
readLine() Reads the next line of text from this data input stream. Deprecated.
readLong() Reads a signed 64-bit integer from this data input stream.
readShort() Reads a signed 16-bit number from this data input stream.
readUnsignedByte() Reads an unsigned 8-bit number from this data input stream.
readUnsignedShort() Reads an unsigned 16-bit number from this data input stream.
readUTF() Reads in a string that has been encoded using a modified UTF-8 format from this data input stream.
readUTF(DataInput) Reads in a string from the specified data input stream.
skipBytes(int) Skips exactly n bytes of input in the underlying input stream.