Creating a charset provider module for IBM charsets

Alan Bateman Alan.Bateman at oracle.com
Fri Jun 22 08:51:14 UTC 2018


On 21/06/2018 11:41, Dave Hobbs wrote:
> Yes, the proposal is to create a new module outside the JDK.
>
> :
>
> A service provider module appears to be the recommended approach according
> the Java api documentation. However writing charset classes is made a lot
> more difficult by not having the sun.nio.cs classes available.
>
> Should we propose adding our charsets in the java.base or jdk.charsets?
>
Is the context here additional EBCDIC code pages? I don't think they are 
interesting to too many applications and as you've found, there has 
always been a service provider interface add support for additional 
charsets. Additional CharsetProvider implementation can be deployed on 
either the class path or module path. Yes, it's a bit more work to 
develop a standalone CharsetProvider but there isn't anything special 
about the sun.nio.cs infrastructure except that it makes it easier when 
adding additional charsets in the JDK.

-Alan


More information about the core-libs-dev mailing list