Difference between InputStream and Reader

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 for handling 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.

Please read the original post for more information.

~ by yingliang on July 7, 2009.

Leave a Reply




*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image