public final class HTMLStripCharFilter extends BaseCharFilter
| Constructor and Description |
|---|
HTMLStripCharFilter(Reader source)
Creates a new HTMLStripCharFilter over the provided Reader.
|
HTMLStripCharFilter(Reader source,
Set<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) |
correctOffsetpublic HTMLStripCharFilter(Reader source)
source - Reader to strip html tags from.public HTMLStripCharFilter(Reader source, Set<String> escapedTags)
source - Reader to strip html tags from.escapedTags - Tags in this set (both start and end tags)
will not be filtered out.public int read()
throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionpublic void close()
throws IOException
CharFilter
NOTE:
The default implementation closes the input Reader, so
be sure to call super.close() when overriding this method.
close in interface Closeableclose in interface AutoCloseableclose in class CharFilterIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved