Class HTMLStripCharFilter
- java.lang.Object
- 
- java.io.Reader
- 
- org.apache.lucene.analysis.CharFilter
- 
- org.apache.lucene.analysis.charfilter.BaseCharFilter
- 
- org.apache.lucene.analysis.charfilter.HTMLStripCharFilter
 
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Readable
 
 public final class HTMLStripCharFilter extends BaseCharFilter A CharFilter that wraps another Reader and attempts to strip out HTML constructs.
- 
- 
Field Summary- 
Fields inherited from class org.apache.lucene.analysis.CharFilterinput
 
- 
 - 
Constructor SummaryConstructors Constructor Description HTMLStripCharFilter(Reader in)Creates a new scannerHTMLStripCharFilter(Reader in, Set<String> escapedTags)Creates a new HTMLStripCharFilter over the provided Reader with the specified start and end tags.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(char[] cbuf, int off, int len)- 
Methods inherited from class org.apache.lucene.analysis.charfilter.BaseCharFilteraddOffCorrectMap, correct, getLastCumulativeDiff
 - 
Methods inherited from class org.apache.lucene.analysis.CharFiltercorrectOffset
 - 
Methods inherited from class java.io.Readermark, markSupported, nullReader, read, read, ready, reset, skip, transferTo
 
- 
 
- 
- 
- 
Constructor Detail- 
HTMLStripCharFilterpublic HTMLStripCharFilter(Reader in, Set<String> escapedTags) Creates a new HTMLStripCharFilter over the provided Reader with the specified start and end tags.- Parameters:
- in- Reader to strip html tags from.
- escapedTags- Tags in this set (both start and end tags) will not be filtered out.
 
 - 
HTMLStripCharFilterpublic HTMLStripCharFilter(Reader in) Creates a new scanner- Parameters:
- in- the java.io.Reader to read input from.
 
 
- 
 - 
Method Detail- 
readpublic int read() throws IOException- Overrides:
- readin class- Reader
- Throws:
- IOException
 
 - 
readpublic int read(char[] cbuf, int off, int len) throws IOException- Specified by:
- readin class- Reader
- Throws:
- IOException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- CharFilter
- Throws:
- IOException
 
 
- 
 
-