CharArrayWriter Class in java

In the previous post, we have seen BufferedInputStream and BufferedOutputStream. In this post, we will CharArrayWriter class.

This class writes characters to a writer and converts those written characters into a char arary.

CharArrayWriter class can be used to write data to multiple files. Its buffer automatically grows when data is written in this stream. Using close() method has no effect on this.

Example of CharArrayWriter class:

Ask Question
Have any question or suggestion for us?Please feel free to post in Q&A Forum


BufferedInputStream and BufferedOutputStream in java
Console Class in java
Shekhar Sharma

Shekhar Sharma

Shekhar Sharma is founder of This website is his window to the world. He believes that ,"Knowledge increases by sharing but not by saving".

You may also like...

1 Response

  1. August 8, 2015

    […] the previous post, we have seen CharArrayWriter class. In this post, we will see the usage of Console […]

Leave a Reply

Your email address will not be published. Required fields are marked *