/** * Resets the StringReader. * * @exception IOException if the StringReader fails to be reset */ public synchronized void reset() throws IOException { in.reset(); }
public void reset() throws IOException { reader.reset(); }
private void scanScript(final StringReader reader) throws Exception { scriptPane.read(reader, null); reader.reset();
public void reset() throws IOException { synchronized (finalLock) { ensureOpen(); if (currentSting != markedString) { currentSting = markedString - 1; nextReader(); current.skip(mark); } else { current.reset(); } next = mark; } }
/** * Resets the StringReader. * * @exception IOException if the StringReader fails to be reset */ public synchronized void reset() throws IOException { in.reset(); }
/** * Repositions this stream to the position at the time the <code>mark</code> method was last * called on this input stream. **/ public void reset() throws IOException { in.reset(); }
/** * Resets the StringReader. * * @exception IOException if the StringReader fails to be reset */ public synchronized void reset() throws IOException { in.reset(); }
@Override public void reset() throws IOException { stringReader.reset(); }
public synchronized void reset() throws IOException { in.reset(); } }
@Override public void reset() throws IOException { stringReader.reset(); }
@Override public void reset() throws IOException { stringReader.reset(); }
public void reset() throws IOException { freemarkerProcessedReader.reset(); }
public void reset() throws IOException { reader.reset(); }
/** * TODO evaluate if this is even needed */ public void reset() { try { os.flush(); os = new StringWriter(); is.reset(); }catch(IOException ioe) { } }
StringReader reader = new StringReader("Test123"); boolean bool = doSomething(reader)//reads from reader with calls to mark() inside if (bool == false) { reader.mark(0); reader.reset(); } doSomethingElse(reader);
class MyReader { private int mark = 0; private StringReader reader; MyReader( StringReader reader, int mark ) { this.reader = reader; this.mark = mark; } public StringReader getReader() { return reader; } public void hardReset() { reader.mark(mark); reader.reset(); } }
private JsonParser getResetParser(JsonParser jp) throws IOException { JsonFactory factory = jp.getCodec().getFactory(); StringReader inputSource = (StringReader) jp.getInputSource(); inputSource.reset(); BufferedReader br = new BufferedReader(inputSource); String source = br.readLine(); return factory.createJsonParser(source); }
private static int peek(StringReader reader) throws IOException { reader.mark(1); int result = reader.read(); reader.reset(); return result; }
/** * Method rdoubleAll Read array of points. * The dimension of the points is judged from the actual input line. * * @return The points[][] read until EOF is met. */ public double[][] rdoubleAll() throws IOException { this.inp.mark(100000000); String eing = this.rString(); this.inp.reset(); StringTokenizer st = new StringTokenizer(eing, this.delimiters); return this.rdoubleAll(st.countTokens()); } }
public void reset() throws IOException { synchronized (finalLock) { ensureOpen(); if (currentSting != markedString) { currentSting = markedString - 1; nextReader(); current.skip(mark); } else { current.reset(); } next = mark; } }