Following example demonstrates, how to write data in to
the stream. In the example subclass CharArrayWriter of abstract Writer class
is used to write data in to the underlying character stream. In the example to
write, data class methods are used. With flush() method the data on
the stream is flowed.
write_to_stream .java
import java.io.*;
|
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Java write to stream View All Comments
Post your Comment