> From: Len Popp [mailto:len.p...@gmail.com] > Subject: Re: [OT] Basic int/char conversion question > > I didn't mean to change the input stream at all, just change "buf" > from a StringBuffer to a ByteBuffer, then create a String with the > correct byte-to-character conversion after all the bytes are read.
Yes, that would work, but would also require additional code changes, possibly in several places, depending on how the StringBuffer is manipulated later. The one-line change of wrappering the InputStream with an InputStreamReader would seem to be the minimally invasive approach, especially given Andre's limited (but growing) Java experience level. - 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