|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Extract
Provides the basic interface that any extractor must support. An extractor is a class that is capable of extracting certain types of data from web data. For example, the ExtractWords extractor is used to extract all of the words from a web page.
| Method Summary | |
|---|---|
void |
addListener(ExtractListener listener)
Add a listener for the extraction. |
void |
extract(WebPage page)
Extract data from the web page. |
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. |
| Method Detail |
|---|
void addListener(ExtractListener listener)
listener - The listener to add.void extract(WebPage page)
page - The page to extract from.java.util.List<java.lang.Object> extractList(WebPage page)
page - The web page to extract from.
java.util.Collection<ExtractListener> getListeners()
void removeListener(ExtractListener listener)
listener - The listener to rmove.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||