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)
Fragmenter
Fragmenter.isNewFragment()
.start
in interface Fragmenter
s
- the original source texttokenStream
- the TokenStream
to be fragmentedpublic boolean isNewFragment()
Fragmenter
isNewFragment
in interface Fragmenter
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.