aspose file tools
The moose likes Beginning Java and the fly likes Differnce between bytes and character streams Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Differnce between bytes and character streams" Watch "Differnce between bytes and character streams" New topic
Author

Differnce between bytes and character streams

Jac Jones
Greenhorn

Joined: Jun 25, 2006
Posts: 17
Hello,

could somebody explain the difference between byte and character streams, and where they are applicable to be used?

thanks,

Jac
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Streams read and write bytes without changing them at all. You can read an image or sound file or unknown document type and process the raw bytes or write them back out to another stream. Readers read unicode characters which are (usually? always?) two bytes wide. Google for more on unicode and character encoding - it's a big topic. Readers often convert between unicode and ASCII one-byte-wide characters so transparently that I've never bothered to figure out just how they do it.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Differnce between bytes and character streams
 
Similar Threads
Please explain the working of read() function
difference between byte & character streams
Streams
NIO and Internationalization
io streams