/** * Present a menu indicating the current display and providing an input menu, fetch the next * line, the process the assumed command there. */ @Override public void run() { while (true) { this.inputMenu(); String line; try { line = bis.readLine(); } catch (IOException e1) { e1.printStackTrace(); System.err.println("Bye"); System.exit(0); return; } try { this.processCommand(line); } catch (Exception e) { e.printStackTrace(); System.exit(-1); } if (Thread.currentThread().isInterrupted()) { System.err.println("Bye"); System.exit(0); } } }
/** * Present a menu indicating the current display and providing an input menu, fetch the next * line, the process the assumed command there. */ @Override public void run() { while (true) { this.inputMenu(); String line; try { line = bis.readLine(); } catch (IOException e1) { e1.printStackTrace(); System.err.println("Bye"); System.exit(0); return; } try { this.processCommand(line); } catch (Exception e) { e.printStackTrace(); System.exit(-1); } if (Thread.currentThread().isInterrupted()) { System.err.println("Bye"); System.exit(0); } } }
/** * Present a menu indicating the current display and providing an input menu, fetch the next * line, the process the assumed command there. */ @Override public void run() { while (true) { this.inputMenu(); String line; try { line = bis.readLine(); } catch (IOException e1) { e1.printStackTrace(); System.err.println("Bye"); System.exit(0); return; } try { this.processCommand(line); } catch (Exception e) { e.printStackTrace(); System.exit(-1); } if (Thread.currentThread().isInterrupted()) { System.err.println("Bye"); System.exit(0); } } }