tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Kolinko" <knst.koli...@gmail.com>
Subject Re: [OT] Basic int/char conversion question
Date Fri, 02 Jan 2009 03:02:26 GMT
2009/1/2 Caldarale, Charles R <Chuck.Caldarale@unisys.com>:
>> From: Len Popp [mailto:len.popp@gmail.com]
>> Subject: Re: [OT] Basic int/char conversion question
>>
>> If there's an easy way to convert a single character,
>> someone please point it out.
>
> Not particularly easy, but this should work:
>
> (...)
>    isr = new InputStreamReader(new ByteArrayInputStream(ba), Charset.forName(csName));
> (...)
>      isr.reset();
>

reset() is not implemented in InputStreamReader, as of Sun JDK 6u07 that
I have installed, thus you have to make a direct call to
ByteArrayInputStream.reset().

Well, it serves the same purpose as TranslationTable class that I have
provided earlier.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message