public final class HTMLStripCharFilter extends BaseCharFilter
input| 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() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
addOffCorrectMap, correct, getLastCumulativeDiffcorrectOffsetpublic 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
close in interface Closeableclose in interface AutoCloseableclose in class CharFilterIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.