if (! doInput) throw new ProtocolException("Can't open InputStream if doInput is false");
  public InputStream getInputStream() throws IOException  {    if (!connected)      connect();    if (bufferedIn == null)      bufferedIn = new BufferedInputStream(sock.getInputStream());    return bufferedIn;  }