Android
java.lang
public interface

java.lang.Readable

java.lang.Readable

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.

Known Indirect Subclasses

Summary

Public Methods

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

Details

Public Methods

public 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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56