org.apache.lucene.search.highlight

Class NullFragmenter

Implemented Interfaces:
Fragmenter

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.

Method Summary

boolean
isNewFragment(Token token)
Test to see if this token from the stream should be held in a new TextFragment
void
start(String s)
Initializes the Fragmenter

Method Details

isNewFragment

public boolean isNewFragment(Token token)
Test to see if this token from the stream should be held in a new TextFragment
Specified by:
isNewFragment in interface Fragmenter
Parameters:

start

public void start(String s)
Initializes the Fragmenter
Specified by:
start in interface Fragmenter
Parameters:

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.