org.apache.maven.index
Class OneLineFragmenter
java.lang.Object
org.apache.maven.index.OneLineFragmenter
- All Implemented Interfaces:
- org.apache.lucene.search.highlight.Fragmenter
public class OneLineFragmenter
- extends Object
- implements org.apache.lucene.search.highlight.Fragmenter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneLineFragmenter
public OneLineFragmenter()
start
public void start(String originalText)
isNewFragment
public boolean isNewFragment(org.apache.lucene.analysis.Token nextToken)
isNewline
protected boolean isNewline(char c)
getChar
protected char getChar(int pos)
getText
public String getText()
setText
public void setText(String text)
isNewFragment
public boolean isNewFragment()
- Specified by:
isNewFragment
in interface org.apache.lucene.search.highlight.Fragmenter
start
public void start(String arg0,
org.apache.lucene.analysis.TokenStream arg1)
- Specified by:
start
in interface org.apache.lucene.search.highlight.Fragmenter
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.