bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java BufferedReader Methods

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:

MethodDescriptionReturn Type
close()Closes the stream and releases system resourcesvoid
mark()Marks the current position in the streamvoid
markSupported()Checks if mark() and reset() are supportedboolean
read()Reads a single characterint
read()Reads characters into an array or a portion of an arrayint
readLine()Reads one full line of textString
ready()Checks if the stream is ready to be readboolean
reset()Resets the stream to the last marked positionvoid
skip()Skips over characters in the streamlong
lines()Returns a Stream<String> of all linesStream<String>
transferTo()Reads all characters and writes them to the given writerlong

Related Pages

Java I/O Streams Tutorial

Previous

Java FileOutputStream Methods

Next

Java BufferedWriter Methods