The Encog Project

org.encog.bot.browse.extract
Class ListExtractListener

java.lang.Object
  extended by org.encog.bot.browse.extract.ListExtractListener
All Implemented Interfaces:
ExtractListener

public class ListExtractListener
extends java.lang.Object
implements ExtractListener

A simple implementation of the ExtractListener interface that will listen for words and add them to a list. This allows you to quickly build a list of all of the words on a web page.

Author:
jheaton

Constructor Summary
ListExtractListener()
           
 
Method Summary
 void foundData(java.lang.Object object)
          Called when a word is found, add it to the list.
 java.util.List<java.lang.Object> getList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListExtractListener

public ListExtractListener()
Method Detail

foundData

public void foundData(java.lang.Object object)
Called when a word is found, add it to the list.

Specified by:
foundData in interface ExtractListener
Parameters:
object - The word found.

getList

public java.util.List<java.lang.Object> getList()
Returns:
The list of words extracted.

The Encog Project