All Implemented Interfaces:
Closeable, AutoCloseable, Readable

  • Field Summary

  • Constructor Summary

    Constructors

    Creates a new pushback reader with a one-character pushback buffer.

    Creates a new pushback reader with a pushback buffer of the given size.

  • Method Summary

    void

    close()

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

    void

    mark(int readAheadLimit)

    Marks the present position in the stream.

    boolean

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

    int

    read()

    Reads a single character.

    boolean

    ready()

    Tells whether this stream is ready to be read.

    void

    reset()

    void

    unread(char[] cbuf)

    Pushes back an array of characters by copying it to the front of the pushback buffer.

    void

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

    Pushes back a portion of an array of characters by copying it to the front of the pushback buffer.

    void

    unread(int c)

    Pushes back a single character by copying it to the front of the pushback buffer.

  • Constructor Details

    • PushbackReader

    • PushbackReader

  • Method Details

    • read

    • unread

    • unread

    • unread

    • ready

    • mark

    • reset

    • markSupported

    • close