2009/1/2 Caldarale, Charles R <chuck.caldar...@unisys.com>:
>> From: Len Popp [mailto:len.p...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to