(char[] cbuf, int off, int len)
| 188 | |
| 189 | Document document = builder.parse(new InputSource(new Reader() { |
| 190 | @Override |
| 191 | public int read(char[] cbuf, int off, int len) throws IOException { |
| 192 | int count = reader.read(cbuf, off, len); |
| 193 | for (int i = 0; i < count; i++) { |
| 194 | if (cbuf[off+i] == '\u2028') { |
| 195 | cbuf[off+i] = '\n'; |
| 196 | } |
| 197 | } |
| 198 | return count; |
| 199 | } |
| 200 | |
| 201 | @Override |
| 202 | public void close() throws IOException { |
no outgoing calls
no test coverage detected