Package org.htmlunit.util

# Class XUserDefinedCharset

java.lang.Object
java.nio.charset.Charset
org.htmlunit.util.XUserDefinedCharset

All Implemented Interfaces:
  `Comparable<Charset>`

public final class XUserDefinedCharset extends Charset
Simple implementation of the 'x-user-defined' `Charset`.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final XUserDefinedCharset`
  `INSTANCE`
  The single instance.
  `static final String`
  `NAME`
  The single instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `contains(Charset charset)`
  `CharsetDecoder`
  `newDecoder()`
  `CharsetEncoder`
  `newEncoder()`

  ### Methods inherited from class java.nio.charset.Charset

  `aliases, availableCharsets, canEncode, compareTo, decode, defaultCharset, displayName, displayName, encode, encode, equals, forName, forName, hashCode, isRegistered, isSupported, name, toString`

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

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### NAME

    public static final String NAME
    The single instance.
    See Also:
      - Constant Field Values

  - ### INSTANCE

    public static final XUserDefinedCharset INSTANCE
    The single instance.

- ## Method Details

  - ### contains

    public boolean contains(Charset charset)
    Specified by:
      `contains` in class `Charset`

  - ### newDecoder

    public CharsetDecoder newDecoder()
    Specified by:
      `newDecoder` in class `Charset`

  - ### newEncoder

    public CharsetEncoder newEncoder()
    Specified by:
      `newEncoder` in class `Charset`