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`.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### 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.