Charset

Methods
6
Fields
None

Getting one

Charset.forName(…)
Charset.defaultCharset()
StandardCharsets.US_ASCII

Methods

MethodReturnsDescription
name()stringThe canonical name (UTF-8).
displayName()stringThe canonical name.
toString()stringThe canonical name.
equals(any)booleanWhether ob is the same charset.
forName(string)CharsetThe charset charsetName names (common aliases accepted); one this has not is UnsupportedCharsetException.
defaultCharset()CharsetUTF-8, the default charset Bento's text is in.

Returned by

MethodReturnsDescription
CharsetClass.defaultCharsetCharsetUTF-8, the default charset Bento's text is in.
CharsetClass.forNameCharsetThe charset charsetName names (common aliases accepted); one this has not is UnsupportedCharsetException.

Method details

name

name: (Charset) -> string

The canonical name (UTF-8).

equals

equals: (Charset, any) -> boolean

Whether ob is the same charset.

forName

forName: (string) -> Charset

The charset charsetName names (common aliases accepted); one this has not is UnsupportedCharsetException.