|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.bot.browse.extract.BasicExtract
public abstract class BasicExtract
Implements the basic functionality that most extractors will need to implement. Mostly this involves maintaining a collection of the extraction listeners that will receive events as the extraction occurs.
| Constructor Summary | |
|---|---|
BasicExtract()
|
|
| Method Summary | |
|---|---|
void |
addListener(ExtractListener listener)
Add a listener for the extraction. |
void |
distribute(java.lang.Object object)
Distribute an object to the listeners. |
java.util.List<java.lang.Object> |
extractList(WebPage page)
Extract from the web page and return the results as a list. |
java.util.Collection<ExtractListener> |
getListeners()
|
void |
removeListener(ExtractListener listener)
Remove the specified listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.encog.bot.browse.extract.Extract |
|---|
extract |
| Constructor Detail |
|---|
public BasicExtract()
| Method Detail |
|---|
public void addListener(ExtractListener listener)
addListener in interface Extractlistener - The listener to add.public void distribute(java.lang.Object object)
object - The object to be distributed.public java.util.List<java.lang.Object> extractList(WebPage page)
extractList in interface Extractpage - The web page to extract from.
public java.util.Collection<ExtractListener> getListeners()
getListeners in interface Extractpublic void removeListener(ExtractListener listener)
removeListener in interface Extractlistener - The listener to rmove.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||