public class InvalidXmlCharacterFilter extends Reader
Modifier and Type | Field and Description |
---|---|
private static boolean |
firstWarning |
private static boolean[] |
INVALID_CHARS |
private Reader |
reader |
Constructor and Description |
---|
InvalidXmlCharacterFilter(Reader reader)
Constructs a new
InvalidXmlCharacterFilter for the given Reader. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private static char |
filter(char in) |
int |
read(char[] b,
int off,
int len) |
private static boolean firstWarning
private static final boolean[] INVALID_CHARS
public InvalidXmlCharacterFilter(Reader reader)
InvalidXmlCharacterFilter
for the given Reader.reader
- The reader to filterpublic int read(char[] b, 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 Reader
IOException
private static char filter(char in)