private SimpleConsole() {
}
public static void main(String[] args) {
CommandMessageListener listener = new CommandMessageListener(null);
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
while (true) {
String line = reader.readLine();
if (line == null || "quit".equalsIgnoreCase(line)) {
break;
}
line = line.trim();
if (line.length() == 0) {
continue;
}
System.out.println(listener.processCommandText(line));
}
} catch (Exception e) {
System.out.println("Caught: " + e);
e.printStackTrace();
}