All Packages Class Hierarchy This Package Previous Next Index
Interface hplb.xml.util.HtmlObserver
- public interface HtmlObserver
A callback interface used in conjunction with UrlScanner. Allows actions
to be taken whenever the scanner finds a URL in an HTML document. The
scanner knows about most HTML 4.0 elements which can contain URLs.
Can be used, for example, to implement robot code which crawls a hypertext
graph. This interface is similar to Jeff Poskanzer's Acme.HtmlObserver.
- Author:
- Anders Kristensen
- See Also:
- HtmlScanner
-
gotAHref(String, URL, Object)
- Invoked when the scanner finds an <a href=""> URL.
-
gotAreaHref(String, URL, Object)
- Invoked when the scanner finds a <area href=""> URL.
-
gotBaseHref(String, URL, Object)
- Invoked when the scanner finds a <base href=""> URL.
-
gotFrameSrc(String, URL, Object)
- Invoked when the scanner finds an <frame src=""> URL.
-
gotImgSrc(String, URL, Object)
- Invoked when the scanner finds an <img src=""> URL.
gotAHref
public abstract void gotAHref(String urlStr,
URL contextUrl,
Object data)
- Invoked when the scanner finds an <a href=""> URL.
gotImgSrc
public abstract void gotImgSrc(String urlStr,
URL contextUrl,
Object data)
- Invoked when the scanner finds an <img src=""> URL.
gotBaseHref
public abstract void gotBaseHref(String urlStr,
URL contextUrl,
Object data)
- Invoked when the scanner finds a <base href=""> URL.
gotAreaHref
public abstract void gotAreaHref(String urlStr,
URL contextUrl,
Object data)
- Invoked when the scanner finds a <area href=""> URL.
gotFrameSrc
public abstract void gotFrameSrc(String urlStr,
URL contextUrl,
Object data)
- Invoked when the scanner finds an <frame src=""> URL.
All Packages Class Hierarchy This Package Previous Next Index