public interface Readable
CharBuffer.
| Modifier and Type | Method and Description |
|---|---|
int |
read(CharBuffer
Attempts to read characters into the specified character buffer.
|
int read(CharBuffercb) throws IOException
cb - the buffer to read characters into
char values added to the buffer, or -1 if this source of characters is at its end
IOException - if an I/O error occurs
NullPointerException - if cb is null
ReadOnlyBufferException - if cb is a read only buffer