throw new IllegalAccessError("Already connected");
throw new IllegalStateException ("Already connected");
  public void setDoInput(boolean doinput)  {    if (connected)      throw new IllegalAccessError("Already connected");    doInput = doinput;  }