throw new IllegalAccessError("Already connected");
throw new IllegalStateException ("Already connected");
  public void setDoOutput(boolean dooutput)  {    if (connected)      throw new IllegalAccessError("Already connected");    doOutput = dooutput;  }