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?
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?