Flash cards
Review the key moves
1/3
Core idea
What is the main idea behind Java BufferedReader Methods?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
1Quick choice
Which statement best captures the main point of this lesson?
2Order
Put the learning moves in the order that makes the concept easiest to apply.
Java I/O Streams Tutorial
The BufferedReader class provides methods to read text efficiently:
BufferedReader Methods
BufferedReader Methods
The BufferedReader class provides methods to read text efficiently:
| Method | Description | Return Type |
|---|---|---|
| close() | Closes the stream and releases system resources | void |
| mark() | Marks the current position in the stream | void |
| markSupported() | Checks if mark() and reset() are supported | boolean |
| read() | Reads a single character | int |
| read() | Reads characters into an array or a portion of an array | int |
| readLine() | Reads one full line of text | String |
| ready() | Checks if the stream is ready to be read | boolean |
| reset() | Resets the stream to the last marked position | void |
| skip() | Skips over characters in the stream | long |
| lines() | Returns a Stream<String> of all lines | Stream<String> |
| transferTo() | Reads all characters and writes them to the given writer | long |
Related Pages
Java I/O Streams Tutorial