Article View: borland.public.jbuilder.java.language
Article #18732InputStream versus FileInputStream
From: Howard Weiner
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
21 lines
901 bytes
901 bytes
Hi,
Hope someone can answer this....
The definition for System.in is
public static final InputStream in = new InputStream();
But, class InputStream is abstract. In fact, it is the intended superclass
of all derived input stream subclasses. Shouldn't the definition for
System.in be:
public static final FileInputStream in = new
FileInputStream(0);
What am I missing here?
TIA.
HDW
Technical Details
Message-ID:
<6istfm$858@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,1d7629f860dcc0d1,start X-Google-Attributes: gidf74b3,public From: "Howard Weiner" <HDWeiner@erols.com> Subject: InputStream versus FileInputStream Date: 1998/05/07 Message-ID: <6istfm$858@forums.borland.com> X-Deja-AN: 351175170 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language