> public class MyCustomizedVisitor extends HTMLVisitor {
> public MyCustomizedVisitor(HTMLParser parser) {
> super(true); /// Its usually a good idea to perform recursion
> // Add the scanners you want.
> // This decouples your application from having to know which
>scanners are required
> parser.addScanner(new HTMLLinkScanner(""));
> parser.addScanner(new HTMLImageScanner(""));
> // or add all scanners with registerScanners()
> }
>
> public void visitTag(HTMLTag tag) {
> // Collect any tags you want
> // You can also do type checking like so:
> if (tag instanceof HTMLMetaTag) {
> // This tag is a meta tag
> HTMLMetaTag metaTag = (HTMLMetaTag)tag;
> }
> }
>
*****************************************************************
Hello Somik ,
Thanks ,for the information,but I couldn't find HTMLVisitor class
,where is it located,plz let me know that.
regards
ANUMODH
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|