About System.in
3 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Wednesday, January 22, 2003 08:15 PM

InputStream is an abstract class.When we System.in , what is the class that extends this InputStream class to give implementations to the abstract class.

Re: About System.in

Posted By:   Stephen_Ostermiller  
Posted On:   Tuesday, January 28, 2003 03:18 PM

I believe that System.in is a machine dependent (possibly native method) implementation of InputStream.

Re: About System.in

Posted By:   eimi_nos  
Posted On:   Sunday, January 26, 2003 04:49 AM

The combination of the classes BufferedReader and InputStreamReader will be practical as was stated above in many cases. If you would like byte-wise reading with the line separator (e.g. '
') explicit, then the method read() of the class BufferedInputStream will also be used.

Re: About System.in

Posted By:   Jeanne_Boyarsky  
Posted On:   Friday, January 24, 2003 05:01 PM

If you want to be able to read indivdual characters:

InputStreamReader in = new InputStreamReader(System.in);

If you want to be able to read Strings and characters:

BufferedReader in
= new BufferedReader(new InputStreamReader(System.in));
About | Sitemap | Contact