|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Fragmenter
Implements the policy for breaking text into multiple fragments for
consideration by the Highlighter
class. A sophisticated
implementation may do this on the basis of detecting end of sentences in the
text.
Method Summary | |
---|---|
boolean |
isNewFragment()
Test to see if this token from the stream should be held in a new TextFragment. |
void |
start(String originalText,
TokenStream tokenStream)
Initializes the Fragmenter. |
Method Detail |
---|
void start(String originalText, TokenStream tokenStream)
isNewFragment()
.
originalText
- the original source texttokenStream
- the TokenStream
to be fragmentedboolean isNewFragment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |