public interface Readable
CharBuffer
.Modifier and Type | Method and Description |
---|---|
int |
read(java.nio.CharBuffer cb)
Attempts to read characters into the specified character buffer.
|
int read(java.nio.CharBuffer cb) throws IOException
cb
- the buffer to read characters intochar
values added to the buffer,
or -1 if this source of characters is at its endIOException
- if an I/O error occursNullPointerException
- if cb is nulljava.nio.ReadOnlyBufferException
- if cb is a read only buffer