Article View: borland.public.jbuilder.java.api
Article #1804Re: HTML Parser
From: Holger Stratmann
Date: Wed, 12 Sep 2001 17:25
Date: Wed, 12 Sep 2001 17:25
36 lines
1944 bytes
1944 bytes
> Is there any Built in Java classes that can read from a url and give me
> the list of words in the page ans the list of links from that page.?
This may sound kind of "stupid", but well.... TAKE a look at the
DOCUMENTATION.
Start by looking at "find" and type "HTML".....
A good starting point seems to be HTMLDocument. Looks like the
getIerator(...) could work for you...
For retrieving the page, take a look at URL and URLConnection...
(getContent())
Enjoy reading,
Holger
> e-mail : nabinthomas.DONOTSPAM@hotmail.com
>
> Web : http://nabin.topcities.com
> http://nabinthomas.net
>
> Feel free to contact me thru e-mail or MSN Mssenger
> if required but DONOT SPAM
>
> ***************************************************
> ***********************************
--
\\///
('O O')
--------------------ooO-(_)-Ooo--------------------
Holger Stratmann
mailto:Holger@cheerful.com
---------------------------------------------------
Technical Details
Message-ID:
<3B9F9AA7.32EB5427@cheerful.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!feed2.onemain.com!feed1.onemain.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3B9F7110.59B77280@hotmail.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,8c4f3990fcca7e5d X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-09-12 10:35:47 PST Message-ID: <3B9F9AA7.32EB5427@cheerful.com> Date: Wed, 12 Sep 2001 19:25:59 +0200 From: Holger Stratmann <Holger@cheerful.com> X-Mailer: Mozilla 4.72 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api CC: nabinthomas@hotmail.com Subject: Re: HTML Parser References: <3B9F7110.59B77280@hotmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.61.105.117 X-Trace: dnews 1000315549 213.61.105.117 (12 Sep 2001 10:25:49 -0700) Lines: 38 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!feed2.onemain.com!feed1.onemain.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews