Simple parser that separates SQLStatements.
Example.
-----------------------
statementSeparator.append("select * from foo; echo $foobar \n");
while (statementSeparator.hasNext()) {
String stmt = statementSeparator.next();
if (stmt.startsWith("echo")) {
// is ok, this command works always without ';'
statementSeparator.consumed();
System.err.println(stmt.substring("echo ".length());
}
else { // SQL-command.