Represents a sequence of characters that can be incrementally read (copied) into a CharBuffer.
| 24 | * into a {@link CharBuffer}. |
| 25 | */ |
| 26 | public interface Readable { |
| 27 | |
| 28 | /** |
| 29 | * Reads characters into the specified {@code CharBuffer}. The maximum |
| 30 | * number of characters read is {@code CharBuffer.remaining()}. |
| 31 | * |
| 32 | * @param cb |
| 33 | * the buffer to be filled with characters read. |
| 34 | * @return the number of characters actually read, or -1 if this |
| 35 | * {@code Readable} reaches its end |
| 36 | * @throws IOException |
| 37 | * if an I/O error occurs. |
| 38 | */ |
| 39 | int read(CharBuffer cb) throws IOException; |
| 40 | } |
no outgoing calls
no test coverage detected