> From: Len Popp [mailto:len.p...@gmail.com] > Subject: Re: [OT] Basic int/char conversion question > > Another option: Read the bytes into a ByteBuffer, then convert > the bytes into a string. You can tell the String constructor > which charset to use.
That would seem to violate one of the specified constraints: > > I cannot change the InputStream into something else, > > because there are a zillion other places where this > > webapp tests on the read byte's value, numerically. whereas using an InputStreamReader would not since its read() method is compatible with that of a plain InputStream. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org