Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
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.