Package org.apache.commons.net.util

# Class Charsets

java.lang.Object
org.apache.commons.net.util.Charsets

@Deprecated public class Charsets extends Object
Deprecated.
Use `Charsets`.
Helps to deal with Charsets.

Since:
  3.3

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Charsets()`
  Deprecated.
  Will be removed in 2.0.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Charset`
  `toCharset(String charsetName)`
  Deprecated.
  Returns a charset object for the given charset name.
  `static Charset`
  `toCharset(String charsetName, String defaultCharsetName)`
  Deprecated.
  Returns a charset object for the given charset name.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Charsets

    @Deprecated public Charsets()
    Deprecated.
    Will be removed in 2.0.
    Depreacted.

- ## Method Details

  - ### toCharset

    public static Charset toCharset(String charsetName)
    Deprecated.
    Returns a charset object for the given charset name.
    Parameters:
      `charsetName` - The name of the requested charset; may be a canonical name, an alias, or null. If null, return the default charset.
    Returns:
      A charset object for the named charset

  - ### toCharset

    public static Charset toCharset(String charsetName, String defaultCharsetName)
    Deprecated.
    Returns a charset object for the given charset name.
    Parameters:
      `charsetName` - The name of the requested charset; may be a canonical name, an alias, or null. If null, return the default charset.
      `defaultCharsetName` - the charset name to use if the requested charset is null
    Returns:
      A charset object for the named charset