public class OneLineFragmenter extends Object implements org.apache.lucene.search.highlight.Fragmenter
Constructor and Description |
---|
OneLineFragmenter() |
Modifier and Type | Method and Description |
---|---|
protected char |
getChar(int pos) |
String |
getText() |
boolean |
isNewFragment() |
boolean |
isNewFragment(org.apache.lucene.analysis.Token nextToken) |
protected boolean |
isNewline(char c) |
void |
setText(String text) |
void |
start(String originalText) |
void |
start(String arg0,
org.apache.lucene.analysis.TokenStream arg1) |
public void start(String originalText)
public boolean isNewFragment(org.apache.lucene.analysis.Token nextToken)
protected boolean isNewline(char c)
protected char getChar(int pos)
public String getText()
public void setText(String text)
public boolean isNewFragment()
isNewFragment
in interface org.apache.lucene.search.highlight.Fragmenter
public void start(String arg0, org.apache.lucene.analysis.TokenStream arg1)
start
in interface org.apache.lucene.search.highlight.Fragmenter
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.