Indicates whether this reader is ready to be read without blocking. This implementation always returns true. @return always true. @throws IOException if this reader is closed. @see #read() @see #read(char[], int, int)
()
| 188 | * @see #read(char[], int, int) |
| 189 | */ |
| 190 | @Override |
| 191 | public boolean ready() throws IOException { |
| 192 | synchronized (lock) { |
| 193 | if (isClosed()) { |
| 194 | throw new IOException("String reader already closed"); //$NON-NLS-1$ |
| 195 | } |
| 196 | return true; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | /** |
| 201 | * Resets this reader's position to the last {@code mark()} location. |