public final class HTMLStripCharFilter extends BaseCharFilter
input
Constructor and Description |
---|
HTMLStripCharFilter(Reader in)
Creates a new scanner
|
HTMLStripCharFilter(Reader in,
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 in, Set<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(Reader in)
in
- the java.io.Reader to read input from.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-2019 Apache Software Foundation. All Rights Reserved.