code: private String readPacFileContent(String scriptUrl) throws IOException {
      try (InputStream in = new URL(scriptUrl).openConnection(Proxy.NO_PROXY).getInputStream();
          BufferedReader r = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8))) {
        StringBuilder result = new StringBuilder();
        try {
          String line;
          while ((line = r.readLine()) != null) {
            result.append(line).append("\n");
          }
        } finally {
          r.close();
        }
        return result.toString();
      }
    }
docs: ***********************************************************************
  Reads a PAC script from a local file.
  
  @param scriptUrl
  @return the content of the script file.
  @throws IOException
  @throws URISyntaxException
  **********************************************************************