Methods

equals(o) → boolean

Determines whether the specified Object is equal to the current instance.

Parameter

Name Type Optional Description

o

Object

 

The Object to compare with the current instance.

Returns

boolean true if value is an instance of Encoding and is equal to the current instance; otherwise, false.

equals(other) → boolean

Determines whether the specified Encoding object is equal to the current instance.

Parameter

Name Type Optional Description

other

Encoding

 

The Encoding object to compare with the current instance.

Returns

boolean true if value is equal to the current instance; otherwise, false.

static

getASCII() → Encoding

Gets an encoding for the ASCII (7-bit) character set.

Returns

Encoding A Encoding object for the ASCII (7-bit) character set.

static

getBigEndianUnicode() → Encoding

Gets an encoding for the UTF-16 format using the big endian byte order.

Returns

Encoding A Encoding object for the UTF-16 format using the big endian byte

static

getDefault() → Encoding

Gets an encoding for the operating system's current ANSI code page.

Returns

Encoding An encoding for the operating system's current ANSI code page.

static

getEncoding(codePage) → Encoding

Returns the encoding associated with the specified code page identifier.

Parameter

Name Type Optional Description

codePage

Number

 

The code page identifier of the preferred encoding. -or- 0, to use the default encoding.

Returns

Encoding The Encoding object associated with the specified code page.

static

getEncoding(charsetName) → Encoding

Returns an encoding associated with the specified charset name.

Parameter

Name Type Optional Description

charsetName

String

 

specified charset name

Returns

Encoding The Encoding object associated with the specified charset name.

static

getEncoding(charset) → Encoding

Returns an encoding associated with the specified charset object.

Parameter

Name Type Optional Description

charset

Charset

 

specified charset object

Returns

Encoding The Encoding object associated with the specified charset object.

static

getUTF7() → Encoding

Gets an encoding for the UTF-7 format.

Returns

Encoding A Encoding object for the UTF-7 format.

static

getUTF8() → Encoding

Gets an encoding for the UTF-8 format.

Returns

Encoding A Encoding object for the UTF-8 format.

static

getUTF8NoBOM() → Encoding

Gets an encoding for the UTF-8 format without the UTF-8 identifier.

Returns

Encoding A Encoding object for the UTF-8 format without UTF-8 identifier.

static

getUnicode() → Encoding

Gets an encoding for the UTF-16 format using the little endian byte order.

Returns

Encoding A Encoding object for the UTF-16 format using the little endian byte