CharserProvider question

M

Martin Gregorie

I'm using an extension to the java.nio.charset.spi.CharsetProvider to
cause the MACINTOSH charset to be treated as an alias for UTF-8. This is
working well, but is somewhat inflexible since the names are hard coded
into the class.

Custom CharsetProviders are only referenced by being named in a META-INF/
services/java.nio.charset.spi.CharsetProvider file and can only have a no-
argument constructor.

So, can anybody suggest a way to parameterise the charset:alias name pair
so I can configure that at run time?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top