Re: What is the purpose of all these Streams?
From: FISH (joeking_at_merseymail.com)
Date: 11/28/03
- Next message: Anthony Borla: "Re: object byte size"
- Previous message: Jéjé: "object byte size"
- In reply to: Anthony Borla: "Re: What is the purpose of all these Streams?"
- Next in thread: Anthony Borla: "Re: What is the purpose of all these Streams?"
- Reply: Anthony Borla: "Re: What is the purpose of all these Streams?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Nov 2003 03:09:52 -0800
"Anthony Borla" <ajborla@bigpond.com> wrote in message news:<XTmxb.29616$aT.1332@news-server.bigpond.net.au>...
> 'InputStream'-based classes read 8 bit bytes, while 'Reader'-based classes
> read 16 bit characters.
At the risk of nit-picking, I think this needs a bit of clarification:
The old 1.02 'stream' classes used to have methods which returned
strings of 16 bit chars - but the way they translated the bytes in
the source data to Unicode characters was too primitive. The new
'reader' classes actually know how to process Utf type data, meaning
that they can cope when they encounter chars which are outside the
usual one byte (seven bit) ASCII range.
So actually it is more accurate to say the 'reader'-based classes
read 8-or-more bit characters, translating them into 16 bit Unicode.
> I strongly urge you to check out the Sun tutorials on streams, located at:
>
> http://java.sun.com/docs/books/tutorial/essential/io/index.html
That's good advice. I second that... :-)
-FISH- ><>
- Next message: Anthony Borla: "Re: object byte size"
- Previous message: Jéjé: "object byte size"
- In reply to: Anthony Borla: "Re: What is the purpose of all these Streams?"
- Next in thread: Anthony Borla: "Re: What is the purpose of all these Streams?"
- Reply: Anthony Borla: "Re: What is the purpose of all these Streams?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|