| java.lang.Readable |
Known Indirect Subclasses
|
Represents a sequence of characters that can be incrementally read (copied)
into a CharBuffer.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Reads characters into the specified
CharBuffer.
| |||||||||||
Reads characters into the specified CharBuffer. The maximum
number of characters read is CharBuffer.remaining().
| Parameters | |
|---|---|
cb |
CharBuffer:
the buffer to be filled with characters read. |
| Returns | |
|---|---|
int |
the number of characters actually read, or -1 if this
Readable reaches its end |
| Throws | |
|---|---|
IOException |
if an I/O error occurs. |