|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SpiderReportable
SpiderReportable: This interface defines a class that the spider can report its findings to.
| Nested Class Summary | |
|---|---|
static class |
SpiderReportable.URLType
The types of link that can be encountered. |
| Method Summary | |
|---|---|
boolean |
beginHost(java.lang.String host)
This function is called when the spider is ready to process a new host. |
void |
init(Spider spider)
Called when the spider is starting up. |
boolean |
spiderFoundURL(java.net.URL url,
java.net.URL source,
SpiderReportable.URLType type)
Called when the spider encounters a URL. |
void |
spiderProcessURL(java.net.URL url,
java.io.InputStream stream)
Called when the spider is about to process a NON-HTML URL. |
void |
spiderProcessURL(java.net.URL url,
SpiderParseHTML parse)
Called when the spider is ready to process an HTML URL. |
void |
spiderURLError(java.net.URL url)
Called when the spider tries to process a URL but gets an error. |
| Method Detail |
|---|
boolean beginHost(java.lang.String host)
host - The new host that is about to be processed.
void init(Spider spider)
spider - The spider that will be working with this object.
boolean spiderFoundURL(java.net.URL url,
java.net.URL source,
SpiderReportable.URLType type)
url - The URL that the spider found.source - The page that the URL was found on.type - The type of link this URL is.
void spiderProcessURL(java.net.URL url,
java.io.InputStream stream)
throws java.io.IOException
url - The URL that the spider found.stream - An InputStream to read the page contents from.
java.io.IOException - Thrown if an IO error occurs while processing the page.
void spiderProcessURL(java.net.URL url,
SpiderParseHTML parse)
throws java.io.IOException
url - The URL that the spider is about to process.parse - An object that will allow you you to parse the HTML on this
page.
java.io.IOException - Thrown if an IO error occurs while processing the page.void spiderURLError(java.net.URL url)
url - The URL that generated an error.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||