Chapter 14
Processing Character Streams and NIO
OBJECTIVES
- To introduce Reader and Writer abstract classes
- To introduce all Reader types such as FileReader, BufferedReader and PipedReader
- To read files as characters using FileReader
- To read files as lines of text using BufferedReader
- To count word frequencies of a given file
- To generate index for the given text file
- To write characters to file using FileWriter
- To copy file contents using FileReader and FileWriter
- To write lines of text to files using BufferedWriter
- To write bytes to PipedWriter and to read from PiperReader
- To design alphabet generator application using Piped IO and threads
- To format output strings using PrintWriter
- To create RandomAccessFile for direct access for reading ...
Get JAVA Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.