()
| 982 | checkNotNull(toIgnore); |
| 983 | return new Reader() { |
| 984 | @Override |
| 985 | public int read() throws IOException { |
| 986 | int readChar; |
| 987 | do { |
| 988 | readChar = delegate.read(); |
| 989 | } while (readChar != -1 && toIgnore.matches((char) readChar)); |
| 990 | return readChar; |
| 991 | } |
| 992 | |
| 993 | @Override |
| 994 | public int read(char[] cbuf, int off, int len) throws IOException { |