Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Readable

public interface Readable

java.lang.Readable
Known Indirect Subclasses


Represents a sequence of characters that can be incrementally read (copied) into a CharBuffer.

Summary

Public methods

abstract int read(CharBuffer cb)

Reads characters into the specified CharBuffer.

Public methods

read

Added in API level 1
int read (CharBuffer cb)

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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.