Lesson 14
Reader Writer Subclasses (Conclusion)
This module discussed various subclasses of
Readers
and
Writers
that perform different functions to manipulate text data.
- The
FileReader
and FileWriter
classes read and write text files.
- The
BufferedReader
and BufferedWriter
classes increase performance by buffering I/O.
The BufferedReader
class also lets you read text line by line with readLine().
- The
LineNumberReader
class is a subclass of BufferedReader
that keeps track of which line it's reading.
- The
StringWriter
, StringReader
, CharArrayWriter
, and CharArrayReader
classes let you manipulate strings and character arrays with the familiar methods of Readers
and Writers
.
- Finally, you learned how to write subclasses of
FilterReader
and FilterWriter
that manipulate text before passing it on.
Coming up
In the final, brief module, you'll review what you've learned in this course. You'll also find out how you can build on the skills you gained in this course and begin learning about network programming with Java. In addition, you'll be asked to complete a course evaluation.
Discussion
Before you continue with the next module, take a moment to think about what you learned in this module. If you have any questions about using different types of readers and writers (such as PrintWriter
, buffered readers and writers, string readers and writers, piped readers and writers, and so on), click the search button located at the top of the page.