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