to top
Android APIs
Added in API level 1
public interface

Readable

java.lang.Readable
Known Indirect Subclasses

Class Overview


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


public abstract int read (CharBuffer cb)

Added in API level 1

Reads characters into the specified CharBuffer. The maximum number of characters read is CharBuffer.remaining().

Parameters
cb the buffer to be filled with characters read.
Returns
  • the number of characters actually read, or -1 if this Readable reaches its end
Throws
IOException if an I/O error occurs.
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.