|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.bot.spider.SimpleReport
public class SimpleReport
SimpleReport: This is a very simple implementation of the SpiderReportable interface. It stays within a single host and does not process any data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.encog.bot.spider.SpiderReportable |
|---|
SpiderReportable.URLType |
| Constructor Summary | |
|---|---|
SimpleReport()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleReport()
| Method Detail |
|---|
public boolean beginHost(java.lang.String host)
beginHost in interface SpiderReportablehost - The new host that is about to be processed.
public void init(Spider spider)
init in interface SpiderReportablespider - The spider that will be working with this object.
public boolean spiderFoundURL(java.net.URL url,
java.net.URL source,
SpiderReportable.URLType type)
spiderFoundURL in interface SpiderReportableurl - The URL that the spider found.source - The page that the URL was found on.type - The type of link this URL is.
public void spiderProcessURL(java.net.URL url,
java.io.InputStream stream)
throws java.io.IOException
spiderProcessURL in interface SpiderReportableurl - 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.
public void spiderProcessURL(java.net.URL url,
SpiderParseHTML parse)
throws java.io.IOException
spiderProcessURL in interface SpiderReportableurl - 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.public void spiderURLError(java.net.URL url)
spiderURLError in interface SpiderReportableurl - 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 | ||||||||