public int read ( byte [ ] b ) throws IOException { try { ByteBlock block = source . read ( b ) ; System . arraycopy ( block . data , 0 , b , 0 , block . count ) ; return block . count ; } catch ( RemoteException e ) { throw new IOException ( "There was a Remote Exception." , e ) ; } }
Reads some number of bytes from the input stream and stores them into the buffer array b .