public final class HTMLStripCharFilter extends BaseCharFilter
input| Constructor and Description |
|---|
HTMLStripCharFilter(java.io.Reader in)
Creates a new scanner
|
HTMLStripCharFilter(java.io.Reader in,
java.util.Set<java.lang.String> escapedTags)
Creates a new HTMLStripCharFilter over the provided Reader
with the specified start and end tags.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying input stream.
|
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
addOffCorrectMap, correct, getLastCumulativeDiffcorrectOffsetpublic HTMLStripCharFilter(java.io.Reader in,
java.util.Set<java.lang.String> escapedTags)
in - Reader to strip html tags from.escapedTags - Tags in this set (both start and end tags)
will not be filtered out.public HTMLStripCharFilter(java.io.Reader in)
in - the java.io.Reader to read input from.public int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic void close()
throws java.io.IOException
CharFilter
NOTE:
The default implementation closes the input Reader, so
be sure to call super.close() when overriding this method.
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class CharFilterjava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.