2009/1/2 Caldarale, Charles R <[email protected]>:
>> From: Len Popp [mailto:[email protected]]
>> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to