Class HTMLStripCharFilter
- java.lang.Object
-
- java.io.Reader
-
- org.apache.lucene.analysis.CharStream
-
- org.apache.lucene.analysis.CharFilter
-
- org.apache.lucene.analysis.BaseCharFilter
-
- org.apache.lucene.analysis.charfilter.HTMLStripCharFilter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
public final class HTMLStripCharFilter extends org.apache.lucene.analysis.BaseCharFilter
A CharFilter that wraps another Reader and attempts to strip out HTML constructs.
-
-
Constructor Summary
Constructors Constructor Description HTMLStripCharFilter(org.apache.lucene.analysis.CharStream source)
HTMLStripCharFilter(org.apache.lucene.analysis.CharStream source, Set<String> escapedTags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read()
int
read(char[] cbuf, int off, int len)
-
Methods inherited from class org.apache.lucene.analysis.BaseCharFilter
addOffCorrectMap, correct, getLastCumulativeDiff
-
Methods inherited from class org.apache.lucene.analysis.CharFilter
correctOffset, mark, markSupported, reset
-
Methods inherited from class java.io.Reader
nullReader, read, read, ready, skip, transferTo
-
-
-
-
Method Detail
-
read
public int read() throws IOException
- Overrides:
read
in classReader
- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException
- Overrides:
read
in classorg.apache.lucene.analysis.CharFilter
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classorg.apache.lucene.analysis.CharFilter
- Throws:
IOException
-
-