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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to