*
The moose likes Java in General and the fly likes Difference between Reader/Writer and InputStream/Output Stream? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Difference between Reader/Writer and InputStream/Output Stream?" Watch "Difference between Reader/Writer and InputStream/Output Stream?" New topic
Author

Difference between Reader/Writer and InputStream/Output Stream?

santu das
Greenhorn

Joined: Jan 02, 2009
Posts: 4
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
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.


Thanks & Regards
Eshu Khare
santu das
Greenhorn

Joined: Jan 02, 2009
Posts: 4
thanks for your inputs
Fred Hamilton
Ranch Hand

Joined: May 13, 2009
Posts: 679
There are differrences in the way the information is actually stored. The following link contains an explanation
http://java.sun.com/docs/books/tutorial/essential/io/charstreams.html

read the paragraph just below the first example, in the section on Using Character Streams.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between Reader/Writer and InputStream/Output Stream?
 
Similar Threads
regarding peer to peer network through java
I/O package
about SCJP test
obtaining InputStream/Reader from OutputStream/Writer to read the content
IO classes