Since "click" is just a machine requesting a resource, you can do something simple:
clickURL = new BufferedReader(new InputStreamReader(new URL(URLOrFilename).openStream()));
This will open the stream. I don’t know if you need to read anything at all (for example, BufferedReader.readLine() ), or if you can close the stream immediately, but it will be done. Wrap it in the main() method, and you're done.
You will need to import the appropriate Java I / O libraries.
source share