throw new IOException("Invalid protocol version requested.");
throw new IllegalArgumentException("Invalid protocol version requested.");
  public void useProtocolVersion(int version) throws IOException  {    if (version != PROTOCOL_VERSION_1 && version != PROTOCOL_VERSION_2)      throw new IOException("Invalid protocol version requested.");        protocolVersion = version;  }