All Packages Class Hierarchy This Package Previous Next Index
![]() |
java.lang.Object
|
+----java.io.InputStream
|
+----java.io.FilterInputStream
|
+----Acme.HtmlEditScanner
This is like HtmlScanner but it lets you make changes to the URLs in the HTML stream you are scanning. The regular scanner class lets you define callbacks that get called with the URLs; in this version, you can return substitute URLs from the callbacks, and they get inserted into the stream in place of the old URLs.
Fetch the software.
Fetch the entire Acme package.
public HtmlEditScanner(InputStream s,
URL thisUrl,
HtmlEditObserver observer)
public HtmlEditScanner(InputStream s,
URL thisUrl,
HtmlEditObserver observer,
Object clientData)
public HtmlEditScanner(HtmlScanner scanner,
HtmlEditObserver observer)
public HtmlEditScanner(HtmlScanner scanner,
HtmlEditObserver observer,
Object clientData)
public void addObserver(HtmlEditObserver observer)
public void addObserver(HtmlEditObserver observer,
Object clientData)
public int read(byte b[],
int off,
int len) throws IOException
public int read() throws IOException
public void gotAHREF(String urlStr,
URL contextUrl,
Object junk)
public void gotIMGSRC(String urlStr,
URL contextUrl,
Object junk)
public void gotFRAMESRC(String urlStr,
URL contextUrl,
Object junk)
public void gotBASEHREF(String urlStr,
URL contextUrl,
Object junk)
public void gotAREAHREF(String urlStr,
URL contextUrl,
Object junk)
public void gotLINKHREF(String urlStr,
URL contextUrl,
Object junk)
public void gotBODYBACKGROUND(String urlStr,
URL contextUrl,
Object junk)
All Packages Class Hierarchy This Package Previous Next Index
ACME Java ACME Labs