DataInputStream.readFully

See the general contract of the {@code readFully} method of {@code DataInput}. <p> Bytes for this operation are read from the contained input stream.

@param b the buffer into which the data is read. @param off the start offset inputStream the data array {@code b}. @param len the number of bytes to read. @exception NullPointerException if {@code b} is {@code null}. @exception IndexOutOfBoundsException if {@code off} is negative, {@code len} is negative, or {@code len} is greater than {@code b.length - off}. @exception EOFException if this input stream reaches the end before reading all the bytes. @exception IOException the stream has been closed and the contained input stream does not support reading after close, or another I/O error occurs. @see java.io.FilterInputStream#inputStream

  1. void readFully(byte[] b)
  2. void readFully(byte[] b, int off, int len)
    class DataInputStream
    final
    void
    readFully
    (
    byte[] b
    ,
    int off
    ,
    int len
    )

Meta