Difference between Reader/Writer and InputStream/Output Stream?
santu das
Greenhorn
Joined: Jan 02, 2009
Posts: 4
posted
0
what i understand is as follows:
the Reader/Writer is character oriented.But InputStream/Output Stream is byte oriented.
But still can anybody explain what does it actually mean?
Thanks in Advance..
eshu khare
Ranch Hand
Joined: Aug 01, 2008
Posts: 44
posted
0
Hi,
The Reader/Writer class hierarchy is character-oriented, and the Input Stream/Output Stream class hierarchy is byte-oriented.
Basically there are two types of streams.Byte streams that are used to handle stream of bytes and character streams for handling streams of characters.In byte streams input/output streams are the abstract classes at the top of hierarchy,while writer/reader are abstract classes at the top of character streams hierarchy.
Hope this answers your question somehow.