com.swabunga.spell.event

Class XMLWordFinder

public class XMLWordFinder extends AbstractWordFinder

A word finder for XML or HTML documents, which searches text for sequences of letters, but ignores the text inside any tags.

Author: Anthony Roy (ajr@antroy.co.uk)

Constructor Summary
XMLWordFinder(String inText)
Creates a new DefaultWordFinder object.
Method Summary
Wordnext()
This method scans the text from the end of the last word, and returns a new Word object corresponding to the next word.

Constructor Detail

XMLWordFinder

public XMLWordFinder(String inText)
Creates a new DefaultWordFinder object.

Parameters: inText the text to search.

Method Detail

next

public Word next()
This method scans the text from the end of the last word, and returns a new Word object corresponding to the next word.

Returns: the next word.

Throws: WordNotFoundException search string contains no more words.