/** Reads input from the device and dispatches the result to the command listener. */ private void processInputData() throws IOException { out.write(Protocol.PC_READY.value); out.flush(); InputBuffer buffer = InputBuffer.readFrom(in); dispatcher.dispatch(buffer.entries); }