Skip to main content

Adding a charset

No replies
sarendt
Offline
Joined: 2009-07-21
Points: 0

Hi All,

I am trying to add support for an additional charset to the phoneme jvm. From what I gather reading the code, I need to implement two classes: ByteToCharxxxxx.java and CharToBytexxxxx.java where xxxxx is the charset name. I do this, and my new charset code gets called with no problem.

Here's my question: From Converters.java, it looks like all the charsets need to be under the same package. All the ones in phoneme are under sun.io. Is there a way to add extra charsets under a different package?

Thanks!