# Class Charset

java.lang.Object
java.nio.charset.Charset

All Implemented Interfaces:
  `java.lang.Comparable<Charset>`

public class Charset extends java.lang.Object implements java.lang.Comparable<Charset>
Added this for Kotlin

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `Charset(java.lang.String canonicalName, java.lang.String[] aliases)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compareTo(Charset another)`
  `java.lang.String`
  `displayName()`
  `static Charset`
  `forName(java.lang.String name)`

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

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

- ## Constructor Details

  - ### Charset

    protected Charset(java.lang.String canonicalName, java.lang.String[] aliases)

- ## Method Details

  - ### compareTo

    public int compareTo(Charset another)
    Specified by:
      `compareTo` in interface `java.lang.Comparable<Charset>`

  - ### displayName

    public java.lang.String displayName()

  - ### forName

    public static Charset forName(java.lang.String name)