private void startReading(final int timeoutMillis) {
    Thread newThread = new MyReadThread();
    newThread.setDaemon(true);
    newThread.start();

    waitUntilReadOrTimeout(timeoutMillis, newThread);
  }
private void startReading(final int timeoutMillis)