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.