|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs132.webPage.ListCallback
public class ListCallback
This is a callback that collects the URLs found and returns them in a list.
| Constructor Summary | |
|---|---|
ListCallback()
|
|
| Method Summary | |
|---|---|
void |
foundHRef(java.net.URL found,
java.net.URL in)
This method is invoked by software examining a web page each time an HRef is found within the contents of the web page. |
java.util.List<java.net.URL> |
getURLs()
Return list of URLs for which the callback has been invoked. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListCallback()
| Method Detail |
|---|
public void foundHRef(java.net.URL found,
java.net.URL in)
Callback
foundHRef in interface Callbackfound - -
the URL that was found in the contents of a web pagein - -
the URL of the web page in which this HRef was foundpublic java.util.List<java.net.URL> getURLs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||