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, getLastCumulativeDiff
correctOffset
public 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.Reader
java.io.IOException
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public 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.Closeable
close
in interface java.lang.AutoCloseable
close
in class CharFilter
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.