All Implemented Interfaces:
Closeable, AutoCloseable, Readable
Direct Known Subclasses:
LineNumberReader

  • Field Summary

  • Constructor Summary

    Constructors

    Creates a buffering character-input stream that uses a default-sized input buffer.

    Creates a buffering character-input stream that uses an input buffer of the specified size.

  • Method Summary

    void

    close()

    Closes the stream and releases any system resources associated with it.

    lines()

    Returns a Stream, the elements of which are lines read from this BufferedReader.

    void

    mark(int readAheadLimit)

    Marks the present position in the stream.

    boolean

    Tells whether this stream supports the mark() operation, which it does.

    int

    read()

    Reads a single character.

    int

    read(char[] cbuf, int off, int len)

    Reads characters into a portion of an array.

    readLine()

    boolean

    ready()

    Tells whether this stream is ready to be read.

    void

    reset()

    Resets the stream to the most recent mark.

  • Constructor Details

    • BufferedReader

    • BufferedReader

  • Method Details

    • read

    • read

    • readLine

    • ready

    • markSupported

    • mark

    • reset

    • close

    • lines