Package java.lang

Interface Readable

    • Method Detail

      • read

        int read​(CharBuffer cb)
          throws IOException
        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.