
✐
✐
“4137X˙CH07˙Akerkar” — 2007/9/8 — 11:21 — page 270 — #8
✐
✐
✐
✐
✐
✐
270 CHAPTER 7 Web Content Mining
Method Detail
readContent
public java.lang.String readContent(java.net.URL url)
Parameters:
url - URL of the web page passed of the type URL
Returns:
Contents from the web page as a string
extractURL
public java.util.Vector extractURL(java.net.URL url,
java.lang.String content)
Parameters:
url - URL of the web page of the type URL
content - Contents of the web page of the type String
Returns:
A vector of links, each link is of the type URL
main
public static void main(java.lang.String[] args)
Parameters:
args - An array of Strings, e.g. http://www.sun.com
Figure 7.6 ...