Interface StringCodecService


  • public interface StringCodecService
    Provides StringCodec instances for certain encodings, possibly customized for a certain locale.
    • Method Detail

      • getStringCodec

        StringCodec getStringCodec​(StringCodecService.Encoding encoding,
                                   String locale)
        Returns the string codec for a certain encoding that is best suited for the given locale.
        Parameters:
        encoding - the type of encoding
        locale - the locale the string codec will be used for. Can be null.
        Returns:
        the best matching string codec, or the default string codec if no specific one could be found.