if (! doOutput) throw new ProtocolException("Can't open OutputStream if doOutput is false");
  public OutputStream getOutputStream() throws IOException  {    if (!connected)      connect();    return sock.getOutputStream();  }