FileInputStream.read

Reads up to <code>b.length</code> bytes of data from this input stream into an array of bytes. This method blocks until some input is available.

@param b the buffer into which the data is read. @return the total number of bytes read into the buffer, or <code>-1</code> if there is no more data because the end of the file has been reached. @exception IOException if an I/O error occurs.

  1. int read()
  2. int read(byte[] b)
    class FileInputStream
    override
    int
    read
    (
    byte[] b
    )
  3. int read(byte[] b, int off, int len)

Meta