@Test public void testDelimited() throws Exception { ScriptReader sr = new ScriptReader("set foo 'bar'; set foo1 'bar1'"); String result = sr.readStatement(); assertEquals("set foo 'bar'", result); result = sr.readStatement(); assertEquals(" set foo1 'bar1'", result); }
public String readStatement() throws IOException{ if (endOfFile) { return null; } while (true) { String result = readStatementLoop(); if (result != null || endOfFile) { return result; } } }
ScriptReader { public String readStatement() throws IOException{ if (endOfFile) { return null; } while (true) { String result = readStatementLoop(); if (result != null || endOfFile) { return result; } } } }
ScriptReader { public String readStatement() throws IOException{ if (endOfFile) { return null; } while (true) { String result = readStatementLoop(); if (result != null || endOfFile) { return result; } } } ScriptReader(Reader reader);  ScriptReader(String string); }
ScriptReader { public String readStatement() throws IOException{ if (endOfFile) { return null; } while (true) { String result = readStatementLoop(); if (result != null || endOfFile) { return result; } } } ScriptReader(Reader reader);  ScriptReader(String string); void close(); String readStatement(); boolean isInsideRemark(); boolean isBlockRemark(); void setRewrite(boolean rewrite); }
ScriptReader { public String readStatement() throws IOException{ if (endOfFile) { return null; } while (true) { String result = readStatementLoop(); if (result != null || endOfFile) { return result; } } } ScriptReader(Reader reader);  ScriptReader(String string); void close(); String readStatement(); boolean isInsideRemark(); boolean isBlockRemark(); void setRewrite(boolean rewrite);  }