Package org.apache.commons.io.charset

# Class CharsetDecoders

java.lang.Object
org.apache.commons.io.charset.CharsetDecoders

public final class CharsetDecoders extends Object
Works with `CharsetDecoder`.

Since:
  2.12.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static CharsetDecoder`
  `toCharsetDecoder(CharsetDecoder charsetDecoder)`
  Returns the given non-null CharsetDecoder or a new default CharsetDecoder.

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

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

- ## Method Details

  - ### toCharsetDecoder

    public static CharsetDecoder toCharsetDecoder(CharsetDecoder charsetDecoder)
    Returns the given non-null CharsetDecoder or a new default CharsetDecoder.

    Null input maps to the virtual machine's `default charset` decoder.

    Parameters:
      `charsetDecoder` - The CharsetDecoder to test.
    Returns:
      the given non-null CharsetDecoder or a new default CharsetDecoder.