java.io.DataInputStream
A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way. An application uses a data output stream to write data that can later be read by a data input stream.
DataInputStream is not necessarily safe for multithreaded access. Thread safety is optional and is the responsibility of users of methods in this class.
Some methods of DataInputStream class.
read(byte[]): This method reads some number of bytes from the contained input stream and stores them into the buffer array b.
read(byte[], int, int): This method reads up to len bytes of data from the contained input stream into an array of bytes.
readBoolean(): This method sees the general contract of the readBoolean method of DataInput.
readByte(): This method sees the general contract of the readBytemethod of DataInput.
readChar(): This method sees the general contract of the readCharmethod of DataInput.
readDouble(): This method sees the general contract of the readDouble method of DataInput.
readFloat(): This method sees the general contract of the readFloat method of DataInput.
readFully(byte[]): This method sees the general contract of the readFully method of DataInput.
readInt(): This method sees the general contract of the readInt method of DataInput.
readLong(): This method sees the general contract of the readLong method of DataInput.
readShort(): This method sees the general contract of the readShortmethod of DataInput.
readUnsignedByte(): This method sees the general contract of the readUnsignedBytemethod of DataInput.
readUnsignedShort(): This method sees the general contract of the readUnsignedShortmethod of DataInput.
readUTF(): This method sees the general contract of the readUTF method of DataInput.
readUTF(DataInput): This method reads from the stream in a representation of a Unicode character string encoded in modified UTF-8 format; this string of characters is then returned as a String.
skipBytes(int): This method sees the general contract of the skipBytesmethod of DataInput. Bytes for this operation are read from the contained input stream.
No comments:
Post a Comment