public interface java.lang
Readable


Show All Login
Java SE 6
  
Implemented by: Reader
Details
A Readable is a source of characters. Characters from a Readable are made available to callers of the read method via a CharBuffer.
version1.4 05/11/17
since1.5

Methods
public int read(java.nio.CharBuffer cb) throws IOException Details
Attempts to read characters into the specified character buffer. The buffer is used as a repository of characters as-is: the only changes made are the results of a put operation. No flipping or rewinding of the buffer is performed.
cbthe buffer to read characters into
return
ThrowsIOException: if an I/O error occurs
ThrowsNullPointerException: if cb is null
ThrowsReadOnlyBufferException: if cb is a read only buffer