This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.lang
interface Readable

All Known Implementing Classes:
CharBuffer, Reader, BufferedReader, CharArrayReader, FilterReader, InputStreamReader, PipedReader, StringReader, LineNumberReader, PushbackReader, FileReader

public interface Readable

A Readable is a source of characters. Characters from a Readable are made available to callers of the read method via a {@link java.nio.CharBuffer CharBuffer}.


Method Summary
 int

          Attempts to read characters into the specified character buffer.
 

Method Detail

read

public int read(CharBuffer cb)
         throws IOException
Attempts to read characters into the specified character buffer. The buffer is used as a repository of characters as-is: the only changes made are the results of a put operation. No flipping or rewinding of the buffer is performed.

Parameters:
cb - the buffer to read characters into
Returns:
@return The number of char values added to the buffer, or -1 if this source of characters is at its end
Throws:
IOException - if an I/O error occurs


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.