james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oki DZ <ok...@pindad.com>
Subject Re: Why use deprecated DataInputStream.readLine?
Date Thu, 15 Nov 2001 00:09:07 GMT
On Wed, 14 Nov 2001, Eung-ju Park wrote:
> Why use deprecated DataInputStream.readLine?
> I noticed many compiler warning when building james.
> Performance issue? or another reason?

Because James was written before DataInputStream.readLine wasn't
deprecated (?).

BTW, to have the same effect, you can use LineNumberReader;
LineNumberReader reader = new LineNumberReader(new InputStreamReader(
  new BufferedInputStream(istream)));
String line = reader.readLine();

Oki



--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message