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 ReaderIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionprivate static char filter(char in)