Two reasons really. a) we don't want to localize these strings as SMTP is all english (could be worked around I guess with the writer encoder setting). b) you have to use an input stream because during the actual message delivery (after the DATA command), you are getting binary data. If you use a Reader, it creates does read-ahead that causes problems when you start reading the message (you'll miss the first byte or two... I forget the exact behavior).
What the JavaMail API does is define it's own InputStream class that is very similar to the DataInputStream... we should probably do something like this if we want to avoid the deprecation warnings. Serge Knystautas Loki Technologies - Unstoppable Websites http://www.lokitech.com/ ----- Original Message ----- From: "Eung-ju Park" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 2001 4:04 AM Subject: Why use deprecated DataInputStream.readLine? > Hi. > > Why use deprecated DataInputStream.readLine? > I noticed many compiler warning when building james. > Performance issue? or another reason? > > Thanks. > > ---- > * Eung-ju Park <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > Life without music would be a mistake. --Nietzsche > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
