(Reader in, Document doc, int pos)
| 55 | } |
| 56 | |
| 57 | @Override |
| 58 | public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException { |
| 59 | char[] buff = new char[4096]; |
| 60 | int nch; |
| 61 | AttributeSet attr = getInputAttributes(); |
| 62 | savedBuf = new char[]{}; |
| 63 | while ((nch = in.read(buff, 0, buff.length)) != -1) { |
| 64 | |
| 65 | doc.insertString(pos, new String(buff, 0, nch), attr); |
| 66 | savedBuf = ArrayUtils.addAll(savedBuf, ArrayUtils.subarray(buff, 0, nch)); |
| 67 | pos += nch; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | @Override |
| 72 | public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException { |
no test coverage detected