cs132.webPage
Class PrintingCallback

java.lang.Object
  extended by cs132.webPage.PrintingCallback
All Implemented Interfaces:
Callback

public class PrintingCallback
extends java.lang.Object
implements Callback

This class is a simple callback that prints each URL found.


Constructor Summary
PrintingCallback()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintingCallback

public PrintingCallback()
Method Detail

foundHRef

public void foundHRef(java.net.URL found,
                      java.net.URL in)
Description copied from interface: Callback
This method is invoked by software examining a web page each time an HRef is found within the contents of the web page.

Specified by:
foundHRef in interface Callback
Parameters:
found - - the URL that was found in the contents of a web page
in - - the URL of the web page in which this HRef was found


Web Accessibility