πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: readLine()

#19843
From: Andrew Bennett
Date: Mon, 08 Dec 1997 00:00
29 lines
1434 bytes


GοΏ½ran Pettersson wrote:

> Anyone,
>
> I have been using the JDK 1.0 and the (now-a-days) deprecated method
> "readLine" with the DataInputStream class very satisfactory. Now with
> JBuilder I feel threathened to use a JDK 1.1 compatible method - do you
> have any suggestions?
> My program is a very heavy In- & Output-line application doing extensive
> String-editing functions.
> Any suggestion will be useful.

The code should compile.  It'll throw warnings, telling you that such
1.0 features may disappear in future versions.

It looks like the java.io.DataInputStream's readLine() method was
moved to java.io.BufferedReader.  So it might be pretty transparent
to move your code.  Check out the BufferedReader class.


Andrew
--
  Andrew Bennett            ->  abennett@borland.com
  JBuilder info             ->  http://www.borland.com/jbuilder/
  JBuilder newsgroups info  ->  http://www.borland.com/newsgroups/
**** Please don't post a reply AND send email.  Do one.  I'll see it. ****
Technical Details
Message-ID: <348C4133.9D3EAEFB@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bd0272$11f5f160$0100007f@win95.aalnet.aland.fi>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,2c344b5f0002659a
X-Google-Attributes: gidf74b3,public
From: Andrew Bennett <abennett@borland.com>
Subject: Re: readLine()
Date: 1997/12/08
Message-ID: <348C4133.9D3EAEFB@borland.com>
X-Deja-AN: 296339773
References: <01bd0272$11f5f160$0100007f@win95.aalnet.aland.fi>
Organization: None
Newsgroups: borland.public.jbuilder.java.language