(ByteBuffer b)
| 100 | } |
| 101 | |
| 102 | public int read(ByteBuffer b) throws IOException { |
| 103 | int c = stream.read |
| 104 | (b.array(), b.arrayOffset() + b.position(), b.remaining()); |
| 105 | |
| 106 | if (c > 0) { |
| 107 | b.position(b.position() + c); |
| 108 | } |
| 109 | |
| 110 | return c; |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | private static class OutputStreamChannel implements WritableByteChannel { |
nothing calls this directly
no test coverage detected