All Implemented Interfaces:
Comparable<Charset>

  • Constructor Summary

    Constructors

    protected

    Initializes a new charset with the given canonical name and alias set.

  • Method Summary

    aliases()

    Returns a set containing this charset's aliases.

    Constructs a sorted map from canonical charset names to charset objects.

    boolean

    canEncode()

    Tells whether or not this charset supports encoding.

    final int

    Compares this charset to another.

    abstract boolean

    Tells whether or not this charset contains the given charset.

    Convenience method that decodes bytes in this charset into Unicode characters.

    Returns the default charset of this Java virtual machine.

    Returns this charset's human-readable name for the default locale.

    Returns this charset's human-readable name for the given locale.

    Convenience method that encodes a string into bytes in this charset.

    Convenience method that encodes Unicode characters into bytes in this charset.

    final boolean

    Tells whether or not this object is equal to another.

    Returns a charset object for the named charset.

    Returns a charset object for the named charset.

    final int

    hashCode()

    Returns the hashcode for this charset.

    final boolean

    static boolean

    Tells whether the named charset is supported.

    name()

    Returns this charset's canonical name.

    Constructs a new decoder for this charset.

    Constructs a new encoder for this charset.

    toString()

    Returns a string describing this charset.

  • Constructor Details

    • Charset

  • Method Details

    • isSupported

    • forName

    • forName

    • availableCharsets

    • defaultCharset

    • name

    • aliases

    • displayName

    • isRegistered

    • displayName

    • contains

    • newDecoder

    • newEncoder

    • canEncode

    • decode

    • encode

    • encode

    • compareTo

    • hashCode

    • equals

    • toString