Creating a charset provider module for IBM charsets

Dave Hobbs dave_hobbs at uk.ibm.com
Wed Jun 20 13:22:42 UTC 2018


Hi

We would like to migrate a number of the IBM charsets (which don't need to 
be in java.base) to a modular charset provider. 

However, as written today our charset classes rely on sun.nio.cs classes 
and definitions, which are no longer visible. For example:

sun.nio.cs.HistoricallyNamedCharset;

sun.nio.cs.CharsetMapping.UNMAPPABLE_DECODING;
sun.nio.cs.CharsetMapping.UNMAPPABLE_ENCODING;

sun.nio.cs.ArrayDecoder;
sun.nio.cs.ArrayEncoder;

sun.nio.cs.Surrogate.Parser;

sun.nio.cs.SingleByte.Decoder;
sun.nio.cs.ext.DoubleByte.Decoder;

sun.nio.cs.SingleByteDecoder;
sun.nio.cs.SingleByteEncoder;

Are there any alternatives to these classes in the new module system or an 
alternative approach to creating charsets? 

re: 
http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-May/053316.html

Regards
Dave Hobbs
Java Runtimes Development
IBM Hursley
IBM United Kingdom Ltd
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


More information about the core-libs-dev mailing list