|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.highlight.NullFragmenter
public class NullFragmenter
Fragmenter
implementation which does not fragment the text.
This is useful for highlighting the entire content of a document or field.
Constructor Summary | |
---|---|
NullFragmenter()
|
Method Summary | |
---|---|
boolean |
isNewFragment()
Test to see if this token from the stream should be held in a new TextFragment. |
void |
start(java.lang.String s,
org.apache.lucene.analysis.TokenStream tokenStream)
Initializes the Fragmenter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullFragmenter()
Method Detail |
---|
public void start(java.lang.String s, org.apache.lucene.analysis.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |