src/java.base/share/classes/java/io/CharArrayReader.java

Print this page

        

*** 114,123 **** --- 114,124 ---- * @param len Maximum number of characters to read * @return The actual number of characters read, or -1 if * the end of the stream has been reached * * @exception IOException If an I/O error occurs + * @exception IndexOutOfBoundsException {@inheritDoc} */ public int read(char b[], int off, int len) throws IOException { synchronized (lock) { ensureOpen(); if ((off < 0) || (off > b.length) || (len < 0) ||