public class NullFragmenter extends Object implements Fragmenter
Fragmenter implementation which does not fragment the text.
This is useful for highlighting the entire content of a document or field.| Constructor and Description |
|---|
NullFragmenter() |
| 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 s,
TokenStream tokenStream)
Initializes the Fragmenter.
|
public void start(String s, TokenStream tokenStream)
FragmenterFragmenter.isNewFragment().start in interface Fragmenters - the original source texttokenStream - the TokenStream to be fragmentedpublic boolean isNewFragment()
FragmenterisNewFragment in interface FragmenterCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.