Class CharsetProvider

java.lang.Object
java.nio.charset.spi.CharsetProvider
net.freeutils.charset.CharsetProvider

public class CharsetProvider extends CharsetProvider
The CharsetProvider class is a Charset Provider implementation.
Since:
2005-06-10
  • Constructor Details

    • CharsetProvider

      public CharsetProvider()
  • Method Details

    • charsetForName

      public Charset charsetForName(String charsetName)
      Retrieves a charset for the given charset name.

      Specified by:
      charsetForName in class CharsetProvider
      Parameters:
      charsetName - The name of the requested charset; may be either a canonical name or an alias
      Returns:
      A charset object for the named charset, or null if the named charset is not supported by this provider
    • charsets

      public Iterator charsets()
      Creates an iterator that iterates over the charsets supported by this provider. This method is used in the implementation of the Charset.availableCharsets method.

      Specified by:
      charsets in class CharsetProvider
      Returns:
      The new iterator