Example below demonstrates working of abstract writer class. Java writer is an abstract class build inside the java.io package. In the example several class methods of the writer class are demonstrated.
In the example, the java writer subclasses classes, FileWriter & PrintWriter are used to write string and other data as text characters in file rose.txt. Java writer class is used to write text files therefore as the classes of abstract writer class is used, a character output stream forms.
Now with the class methods, string and number type data is written in to the text files.
Note: While using the classes of abstract writer class, an output stream is formed because we are flowing data as characters from the internal memory of an application to a disk file.
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: December 12, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles