O'Reilly logo

JAVA Programming by K. Rajkumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required