加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090402070732/http://developer.android.com:80/reference/java/lang/Readable.html
public interface

Readable

java.lang.Readable
Known Indirect Subclasses

Class Overview

Readable marks that the implementing class provides character sequence. Readable gives a reference to character sequence from within itself to caller through a CharBuffer parameter of the read method.

Summary

Public Methods
abstract int read(CharBuffer cb)
Reads the characters into the given CharBuffer.

Public Methods

public abstract int read (CharBuffer cb)

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

Parameters
cb the buffer to be filled in by the characters read
Returns
  • the number of characters actually read, or -1 if this Readable reaches its end
Throws
IOException if some I/O operations fail