len bytes from the stream, and stores them into b starting at index off. If the end of the stream is reached, an EOFException will be thrown. The bit offset within the stream is reset to zero before the read occurs.
@param b an array of bytes to be written to.
@param off the starting position within b to write to.
@param len the maximum number of bytes to read.
@exception IndexOutOfBoundsException if off isnegative, len is negative, or off + len is greater than b.length.
@exception NullPointerException if b isnull.
@exception EOFException if the stream reaches the end beforereading all the bytes.
@exception IOException if an I/O error occurs.
buffer. This method will block until buffer.length number of bytes have been read.
@param buffer the buffer to read bytes into
@throws IOException If a problem occurs reading from this stream.
@see DataOutput#write(byte[])
@see DataOutput#write(byte[],int,int)
readFully method of DataInput. Bytes for this operation are read from the contained input stream. @param b the buffer into which the data is read. @exception EOFException if this input stream reaches the end beforereading all the bytes. @exception IOException the stream has been closed and the containedinput stream does not support reading after close, or another I/O error occurs. @see java.io.FilterInputStream#in
buffer. This method will block until buffer.length number of bytes have been read.
@param buffer the buffer to read bytes into
@throws IOException if a problem occurs reading from this stream.
buffer. This method will block until buffer.length number of bytes have been read.
@param buffer the buffer to read bytes into
@throws IOException If a problem occurs reading from this DataInputStream.
@see DataOutput#write(byte[])
@see DataOutput#write(byte[],int,int)
len bytes from the stream, and stores them into b starting at index off. If the end of the stream is reached, an java.io.EOFException will be thrown. The bit offset within the stream is reset to zero before the read occurs.
@param b an array of bytes to be written to.
@param off the starting position within b to write to.
@param len the maximum number of bytes to read.
@exception IndexOutOfBoundsException if off isnegative, len is negative, or off + len is greater than b.length.
@exception NullPointerException if b isnull.
@exception java.io.EOFException if the stream reaches the end beforereading all the bytes.
@exception IOException if an I/O error occurs.
length bytes have been read.
@param position position in the input stream to seek
@param buffer buffer into which data is read
@param offset offset into the buffer in which data is written
@param length the number of bytes to read
@throws EOFException If the end of stream is reached while reading.If an exception is thrown an undetermined number of bytes in the buffer may have been written.
b. The number of bytes read is equal to the length of b. This method blocks until one of the following conditions occurs:
b.length bytes of input data are available, in which case a normal return is made. EOFException is thrown. IOException other than EOFException is thrown. If b is null, a NullPointerException is thrown. If b.length is zero, then no bytes are read. Otherwise, the first byte read is stored into element b[0], the next one into b[1], and so on. If an exception is thrown from this method, then it may be that some but not all bytes of b have been updated with data from the input stream.
@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.
b.length bytes from this file into the byte array. This method reads repeatedly from the file until all the bytes are read. This method blocks until all the bytes are read, the end of the stream is detected, or an exception is thrown.
@param b the buffer into which the data is read.
@throws EOFException if this file reaches the end before readingall the bytes.
@throws IOException if an I/O error occurs.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |