|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpt.tumba.cage.DefaultWordFinder
pt.tumba.cage.XMLWordFinder
public class XMLWordFinder
A word finder for XMLdocuments, which searches text for sequences of letters, but ignores tags.
DefaultWordFinder| Constructor Summary | |
|---|---|
XMLWordFinder()
Constructor for XMLWordFinder. |
|
XMLWordFinder(java.lang.String inText)
Constructor for XMLWordFinder. |
|
| Method Summary | |
|---|---|
java.lang.String |
currentSegment()
Returns the current text segment from the input. |
java.lang.String |
next()
This method scans the text from the end of the last word, and returns a String corresponding to the next word. |
| Methods inherited from class pt.tumba.cage.DefaultWordFinder |
|---|
current, currentNGram, currentWordGram, getText, hasNext, lookAhead, nextSegment, replace, replaceBigram, replaceSegment, setText, splitNGrams, splitSegments, splitWordGrams, splitWords, startsSentence, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XMLWordFinder(java.lang.String inText)
inText - A String with the input text to tokenize.public XMLWordFinder()
| Method Detail |
|---|
public java.lang.String currentSegment()
currentSegment in class DefaultWordFinderpublic java.lang.String next()
next in class DefaultWordFinder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||