Resets this reader's position to the last mark() location. Invocations of read() and skip() will occur from this new location. If this reader has not been marked, it is reset to the beginning of the source string. @throws IOException if this reader is closed. @se
()
| 209 | * @see #markSupported() |
| 210 | */ |
| 211 | @Override |
| 212 | public void reset() throws IOException { |
| 213 | synchronized (lock) { |
| 214 | if (isClosed()) { |
| 215 | throw new IOException("StringReader already closed"); //$NON-NLS-1$ |
| 216 | } |
| 217 | pos = markpos != -1 ? markpos : 0; |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | /** |
| 222 | * Moves {@code ns} characters in the source string. Unlike the {@link |