public class Charset

  1. Object
  2. Charset

ImplementsComparable<Charset>

Added this for Kotlin

Constructors

protected Charset(String canonicalName, String[] aliases)

Methods

public int compareTo(Charset another)Compares this object to the specified object to determine their relative order.
public String displayName()
public static Charset forName(String name)

Inherited methods

Constructor details

Charset

protected Charset(String canonicalName, String[] aliases)

Method details

compareTo

public int compareTo(Charset another)
Compares this object to the specified object to determine their relative order.

Parameters

another Charset
the object to compare to this instance.

Returns

a negative integer if this instance is less than another; a positive integer if this instance is greater than another; 0 if this instance has the same order as another.

Throws

ClassCastException
if another cannot be converted into something comparable to this instance.

displayName

public String displayName()

forName

public static Charset forName(String name)