[Htmlparser-user] help on parser's constructor
Brought to you by:
derrickoswald
From: Marcel <ta...@gm...> - 2007-11-16 05:33:49
|
Hi, I used htmlparser to parse certain web pages. I found some weird thing about parser's two constructors. Say, I have a urlString ----------- method 1 ------------ Parser parser = new Parser(urlString); -------- method 2 ------------ URL url = new URL(urlString); Parser parser = new Parser(url.openConnection()); These two methods got different page contents for the same urlString. Anybody knows the reason? What is the difference between those two constructors? Thanks -marcel |