*
*/
public void open() {
final CommandExecuter cmd = new CommandExecuter(db, p, cm, locale, new CommandParser());
BufferedReader in = null;
try {
in = new BufferedReader( new InputStreamReader(is) );
do {
out.print( PROMPT );
final String command = in.readLine();
// if we've been started in the background then we won't
// be attached to any input stream, so can't use console...
if ( command == null ) {
return;
}
out.println( cmd.execute(command) );
}
while ( true );
}