🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7736

Re: DataInputStream.readLine() returns null

#7736
From: Nabin Thomas
Date: Mon, 21 May 2001 14:24
71 lines
3237 bytes
This is a multi-part message in MIME format.
--------------71DE622E4826CCD8AF1804C2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Here's the Documentation for BufferedReader.readLine()

public String readLine()
                throws IOException

     Read a line of text. A line is considered to be terminated by any one of a
line feed ('\n'), a
     carriage return ('\r'), or a carriage return followed immediately by a
linefeed.
     Returns:
          A String containing the contents of the line, not including any
line-termination
          characters, or null if the end of the stream has been reached
     Throws:
          IOException - If an I/O error occurs



ArShAm wrote:

> Thanks
> And in this new one(BufferedInputStream) when I get null? and when
> Exceptions?
> the root problem of mine was when I saw the IRC system , doesn't close the
> connection when I got dc from my ISP , it sends a PING message to see if the
> PONG not reply , then the other side is dead , anyway......
> How the socket doesn't close when I disconnect?
>
> Thanks
>     ArShAm
>
> "Nabin Thomas" <viewmycard@foremail.nospamplease> wrote in message
> news:3B0415CD.4A0A7E07@foremail.nospamplease...
> > This methid is now deprecated due to some prolems.
> > Use BufferedInputStream or BufferedReader to use the same method
> >
> > ArShAm wrote:
> >
> > >     Hi there
> > >
> > > When DataInputStream.readLine() return null?
> > > If we assigned it to an input stream of a socket?
> > >
> > > Thanks
> > >     ArShAm
> >

--------------71DE622E4826CCD8AF1804C2
Content-Type: text/x-vcard; charset=us-ascii;
 name="viewmycard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Nabin Thomas
Content-Disposition: attachment;
 filename="viewmycard.vcf"

begin:vcard 
n:Thomas;Nabin
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:DONOTSPAMME.nabinthomas@REMOVETHIShotmail.comANDTHISTOO
note;quoted-printable:REMOVE the Capitalised letters in my email ID given in this card=0D=0A=0D=0AFeel free to contact me thru e-mail or MSN Mssenger =0D=0A if required but DONOT SPAM=0D=0A=0D=0A
fn:Nabin Thomas
end:vcard

--------------71DE622E4826CCD8AF1804C2--
Technical Details
Message-ID: <3B092538.15B9666B@foremail.nospamplease>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3afd22f8_1@dnews> <3B0415CD.4A0A7E07@foremail.nospamplease> <3b0588f9$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,9d74702ea18ab9c4
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-21 08:10:40 PST
Message-ID: <3B092538.15B9666B@foremail.nospamplease>
Date: Mon, 21 May 2001 19:54:56 +0530
From: Nabin Thomas <viewmycard@foremail.nospamplease>
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: DataInputStream.readLine() returns null
References: <3afd22f8_1@dnews> <3B0415CD.4A0A7E07@foremail.nospamplease> <3b0588f9$1_2@dnews>
Content-Type: multipart/mixed;
 boundary="------------71DE622E4826CCD8AF1804C2"
NNTP-Posting-Host: 202.9.186.228
X-Trace: dnews 990456122 202.9.186.228 (21 May 2001 07:42:02 -0700)
Lines: 73
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews