Class CharsetProviderICU


  • public final class CharsetProviderICU
    extends java.nio.charset.spi.CharsetProvider
    A concrete subclass of CharsetProvider for loading and providing charset converters in ICU.
    • Constructor Summary

      Constructors 
      Constructor Description
      CharsetProviderICU()
      Default constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.nio.charset.Charset charsetForName​(java.lang.String charsetName)
      Constructs a charset for the given charset name.
      java.util.Iterator charsets()
      Returns an iterator for the available charsets.
      static java.lang.String[] getAllNames()
      Deprecated.
      This API is ICU internal only.
      static java.lang.Object[] getAvailableNames()
      Deprecated.
      This API is ICU internal only.
      static java.lang.String getICUCanonicalName​(java.lang.String enc)
      Deprecated.
      This API is ICU internal only.
      static java.lang.String getJavaCanonicalName​(java.lang.String charsetName)
      Deprecated.
      This API is ICU internal only.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CharsetProviderICU

        public CharsetProviderICU()
        Default constructor
    • Method Detail

      • charsetForName

        public final java.nio.charset.Charset charsetForName​(java.lang.String charsetName)
        Constructs a charset for the given charset name. Implements the abstract method of super class.
        Specified by:
        charsetForName in class java.nio.charset.spi.CharsetProvider
        Parameters:
        charsetName - charset name
        Returns:
        charset objet for the given charset name, null if unsupported
      • getICUCanonicalName

        public static final java.lang.String getICUCanonicalName​(java.lang.String enc)
                                                          throws java.nio.charset.UnsupportedCharsetException
        Deprecated.
        This API is ICU internal only.
        Gets the canonical name of the converter as defined by Java
        Parameters:
        enc - converter name
        Returns:
        canonical name of the converter
        Throws:
        java.nio.charset.UnsupportedCharsetException
      • getJavaCanonicalName

        public static java.lang.String getJavaCanonicalName​(java.lang.String charsetName)
        Deprecated.
        This API is ICU internal only.
        Gets the canonical name of the converter as defined by Java
        Parameters:
        charsetName - converter name
        Returns:
        canonical name of the converter
      • charsets

        public final java.util.Iterator charsets()
        Returns an iterator for the available charsets. Implements the abstract method of super class.
        Specified by:
        charsets in class java.nio.charset.spi.CharsetProvider
        Returns:
        Iterator the charset name iterator
      • getAvailableNames

        public static final java.lang.Object[] getAvailableNames()
        Deprecated.
        This API is ICU internal only.
        Gets the canonical names of available converters
        Returns:
        Object[] names as an object array
      • getAllNames

        public static final java.lang.String[] getAllNames()
        Deprecated.
        This API is ICU internal only.
        Return all names available
        Returns:
        String[] an arrya of all available names