(CharBuffer buffer)
| 14 | |
| 15 | public abstract class Reader implements Closeable, Readable { |
| 16 | public int read(CharBuffer buffer) throws IOException { |
| 17 | int c = read(buffer.array(), |
| 18 | buffer.arrayOffset() + buffer.position(), |
| 19 | buffer.remaining()); |
| 20 | |
| 21 | if (c > 0) { |
| 22 | buffer.position(buffer.position() + c); |
| 23 | } |
| 24 | |
| 25 | return c; |
| 26 | } |
| 27 | |
| 28 | public int read() throws IOException { |
| 29 | char[] buffer = new char[1]; |
nothing calls this directly
no test coverage detected