M
Mike Mimic
Hi!
What is wrong with this code:
HTMLDocument html = new HTMLDocument();
try {
HTMLEditorKit kit = new HTMLEditorKit();
URL url = new URL("http://www.google.com/");
kit.read(new BufferedReader(new
InputStreamReader(url.openStream())), html, 0);
}
catch (Exception e) {
System.err.println("Error");
}
Exception is thrown every time. (Yes, I am connected to the Internet
and I can read from reader - I have tryed reading from new
BufferedReader(new InputStreamReader(url.openStream())) Reader and it
works.)
Mike
What is wrong with this code:
HTMLDocument html = new HTMLDocument();
try {
HTMLEditorKit kit = new HTMLEditorKit();
URL url = new URL("http://www.google.com/");
kit.read(new BufferedReader(new
InputStreamReader(url.openStream())), html, 0);
}
catch (Exception e) {
System.err.println("Error");
}
Exception is thrown every time. (Yes, I am connected to the Internet
and I can read from reader - I have tryed reading from new
BufferedReader(new InputStreamReader(url.openStream())) Reader and it
works.)
Mike