/** * Read bytes into an array. * This method will block until some input is available, * an I/O error occurs, or the end of the stream is reached. * * @param cbuf Destination buffer. * @return The number of bytes read, or -1 if the end of * the stream has been reached * @throws IOException if the stream is closed. * * @since ostermillerutils 1.00.00 */ @Override public int read(byte[] cbuf) throws IOException { return read(cbuf, 0, cbuf.length); }