Charset (Java SE 24 & JDK 24)
- All Implemented Interfaces:
Comparable<Charset>
-
Constructor Summary
Constructors
protectedInitializes 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.
booleanTells whether or not this charset supports encoding.
final intCompares this charset to another.
abstract booleanTells 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 booleanTells 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 inthashCode()Returns the hashcode for this charset.
final booleanstatic booleanTells 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
-