tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: [OT] Basic int/char conversion question
Date Thu, 01 Jan 2009 17:37:48 GMT
> From: Len Popp [mailto:len.popp@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message