public interface Fragmenter
Highlighter class. A sophisticated
implementation may do this on the basis of detecting end of sentences in the
text.| Modifier and Type | Method and Description |
|---|---|
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.
|
void start(String originalText, TokenStream tokenStream)
isNewFragment().originalText - the original source texttokenStream - the TokenStream to be fragmentedboolean isNewFragment()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.