Article View: borland.public.jbuilder.java.api
Article #270Socket.getInputStream() question
From: Ron
Date: Wed, 24 Mar 2004 19:47
Date: Wed, 24 Mar 2004 19:47
21 lines
1372 bytes
1372 bytes
Socket.getInputStream() returns an InputStream object. So, if I have this code: InputStream in = sock.getInputStream(); in.read(....); what I don't understand (as a novice) is: InputStream is abstract so it cannot be instantiated. But an InputStream object is being instantiated, right? So, how? Thanks. RON _________________________________________________________ Black and White Photography: http://www.ronaldgansphotography.com
Technical Details
Message-ID:
<4061e5c3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,6e32650011d9be01,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2004-03-24 11:59:06 PST Reply-To: "Ron" <rgans@nospamRonaldgansphotographyDOTcom> From: "Ron" <rgans@nospamRonaldgansphotographyDOTcom> Newsgroups: borland.public.jbuilder.java.api Subject: Socket.getInputStream() question Date: Wed, 24 Mar 2004 14:47:15 -0500 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 161.233.9.45 Message-ID: <4061e5c3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080157635 161.233.9.45 (24 Mar 2004 11:47:15 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail