code: private void setProxy(String proxyStr) {
      String[] strs = proxyStr.split(":", 2);
      if (strs.length != 2)
        throw new RuntimeException("Bad SOCKS proxy parameter: " + proxyStr);
      String host = strs[0];
      int port = Integer.parseInt(strs[1]);
      this.proxy =
          new Proxy(Proxy.Type.SOCKS, InetSocketAddress.createUnresolved(host,
              port));
    }
docs: Set the proxy of this socket factory as described in the string
  parameter
  
  @param proxyStr the proxy address using the format "host:port"