MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / reset

Method reset

vm/JavaAPI/src/java/io/StringReader.java:211–219  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isClosedMethod · 0.95

Tested by

no test coverage detected