/** * Bulk read bytes from channel into dst. * * @param dst The destination byte array * @throws IOException */ public void read(byte[] dst) throws IOException { channel.readBytes(dst, 0, dst.length); }
/** * Bulk read bytes from channel into dst. * * @param dst The destination byte array * @param offset The offset within dst to start reading * @param length The number of bytes to read * @throws IOException */ public void read(byte[] dst, int offset, int length) throws IOException { channel.readBytes(dst, offset, length); }