|
Java™ by example!
|
|
|
How do I convert an OutputStream to a Writer?
An OutputStream is byte oriented. A Writer is Character oriented. To hook up an OutputStream to a Writer and have the conversion done automatically for you, use the class OutputStreamWriter. Main.java:
outputs:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|