What is the difference between Stream Reader and Stream Writer?

Showing Answers 1 - 2 of 2 Answers

rabbi

  • Jul 2nd, 2006
 

Stream Reader

A Stream Reader is a bridge from byte streams to character streams: It reads bytes and translates them into characters according to a specified character encoding. The encoding that it uses may be specified by name, or the platform's default encoding may be accepted.
This Encoding are supported by java:
US-ASCII
ISO-8859-1
UTF-8
UTF-16BE
UTF-16LE
UTF-16

Stream Writer

A Stream Writer is a bridge from character streams to byte streams: Characters written to it are encoded into bytes using a specified charset. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted.

jay

  • Sep 23rd, 2006
 

man, StringReader as the name says READS from the stream, StreamWriter - writes to it

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions