|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Reader org.apache.lucene.analysis.CharStream org.apache.lucene.analysis.charfilter.CharFilter org.apache.lucene.analysis.charfilter.BaseCharFilter org.apache.solr.analysis.LegacyHTMLStripCharFilter
HTMLStripCharFilter
@Deprecated public class LegacyHTMLStripCharFilter
This class is NOT recommended for new users and should be considered UNSUPPORTED.
In Solr version 3.5 and earlier, HTMLStripCharFilter(Factory) had known bugs in the offsets it provided, triggering e.g. exceptions in highlighting.
This class is provided as possible alternative for people who depend on the "broken" behavior of HTMLStripCharFilter in Solr version 3.5 and earlier, and/or who don't like the changes introduced by the Solr 3.6+ version of HTMLStripCharFilterFactory. (See the 3.6.0 release section of solr/CHANGES.txt for a list of differences in behavior.)
Field Summary | |
---|---|
static int |
DEFAULT_READ_AHEAD
Deprecated. |
Fields inherited from class org.apache.lucene.analysis.charfilter.CharFilter |
---|
input |
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
LegacyHTMLStripCharFilter(CharStream source)
Deprecated. |
|
LegacyHTMLStripCharFilter(CharStream source,
Set<String> escapedTags)
Deprecated. |
|
LegacyHTMLStripCharFilter(CharStream source,
Set<String> escapedTags,
int readAheadLimit)
Deprecated. |
Method Summary | |
---|---|
void |
close()
Deprecated. |
int |
getReadAheadLimit()
Deprecated. |
static void |
main(String[] args)
Deprecated. |
int |
read()
Deprecated. |
int |
read(char[] cbuf,
int off,
int len)
Deprecated. |
Methods inherited from class org.apache.lucene.analysis.charfilter.BaseCharFilter |
---|
addOffCorrectMap, correct, getLastCumulativeDiff |
Methods inherited from class org.apache.lucene.analysis.charfilter.CharFilter |
---|
correctOffset, mark, markSupported, reset |
Methods inherited from class java.io.Reader |
---|
read, read, ready, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_READ_AHEAD
Constructor Detail |
---|
public LegacyHTMLStripCharFilter(CharStream source)
public LegacyHTMLStripCharFilter(CharStream source, Set<String> escapedTags)
public LegacyHTMLStripCharFilter(CharStream source, Set<String> escapedTags, int readAheadLimit)
Method Detail |
---|
public static void main(String[] args) throws IOException
IOException
public int getReadAheadLimit()
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class CharFilter
IOException
public void close() throws IOException
close
in interface Closeable
close
in class CharFilter
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |