public ByteBlock read ( byte [ ] b ) throws IOException { int count = source . read ( b ) ; return new ByteBlock ( b , count ) ; }
Reads some number of bytes from the input stream and stores them into the buffer array b . The bytes are also returned wrapped in a byte block so that they can be returnd over RMI .