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, getLastCumulativeDiff
correctOffset
public 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 Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class CharFilter
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.