Console reader?

Dawid Weiss <[email protected]> Mon, 23 May 2005 09:35:42 +0200
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
Hi!

A student of mine asked why Console.getIn() returns a Reader instance 
that emits Java-encoded character sequences (unicode \uxxxx) and I 
honestly didn't have any idea (an output stream I'd understand, but a 
Reader?). What's the purpose of this and what's the correct way to 
decode the stream (I advised to use bsh.JavaCharStream to decode it, but 
I am still curious about this design rationale).

Dawid


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click