public synchronized void onTextAvailable(String text, boolean stdError) {
    if (!closed) {
      myInstantReader.append(text);
    }
  }
public synchronized void onTextAvailable(String text, boolean stdError)