Encoding
Encoding class
Represents a character encoding.
Methods
| Name | Description |
|---|---|
| equals(o) | Determines whether the specified Object is equal to the current instance. |
| equals(other) | Determines whether the specified Encoding object is equal to the current instance. |
| getASCII() (static) | Gets an encoding for the ASCII (7-bit) character set. |
| getBigEndianUnicode() (static) | Gets an encoding for the UTF-16 format using the big endian byte order. |
| getDefault() (static) | Gets an encoding for the operating system’s current ANSI code page. |
| getEncoding(codePage) (static) | Returns the encoding associated with the specified code page identifier. |
| getEncoding(charsetName) (static) | Returns an encoding associated with the specified charset name. |
| getEncoding(charset) (static) | Returns an encoding associated with the specified charset object. |
| getUTF7() (static) | Gets an encoding for the UTF-7 format. |
| getUTF8() (static) | Gets an encoding for the UTF-8 format. |
| getUTF8NoBOM() (static) | Gets an encoding for the UTF-8 format without the UTF-8 identifier. |
| getUnicode() (static) | Gets an encoding for the UTF-16 format using the little endian byte order. |
equals(o)
Determines whether the specified Object is equal to the current instance.
| Parameter | Type | Description |
|---|---|---|
| o | Object | The Object to compare with the current instance. |
Returns: boolean — boolean true if value is an instance of Encoding and is equal to the current instance; otherwise, false.
equals(other)
Determines whether the specified Encoding object is equal to the current instance.
| Parameter | Type | Description |
|---|---|---|
| other | Encoding | The Encoding object to compare with the current instance. |
Returns: boolean — boolean true if value is equal to the current instance; otherwise, false.
getASCII() (static)
Gets an encoding for the ASCII (7-bit) character set.
Returns: Encoding — Encoding A Encoding object for the ASCII (7-bit) character set.
getBigEndianUnicode() (static)
Gets an encoding for the UTF-16 format using the big endian byte order.
Returns: Encoding — Encoding A Encoding object for the UTF-16 format using the big endian byte
getDefault() (static)
Gets an encoding for the operating system’s current ANSI code page.
Returns: Encoding — Encoding An encoding for the operating system’s current ANSI code page.
getEncoding(codePage) (static)
Returns the encoding associated with the specified code page identifier.
| Parameter | Type | Description |
|---|---|---|
| codePage | Number | The code page identifier of the preferred encoding. -or- 0, to use the default encoding. |
Returns: Encoding — Encoding The Encoding object associated with the specified code page.
getEncoding(charsetName) (static)
Returns an encoding associated with the specified charset name.
| Parameter | Type | Description |
|---|---|---|
| charsetName | String | specified charset name |
Returns: Encoding — Encoding The Encoding object associated with the specified charset name.
getEncoding(charset) (static)
Returns an encoding associated with the specified charset object.
| Parameter | Type | Description |
|---|---|---|
| charset | Charset | specified charset object |
Returns: Encoding — Encoding The Encoding object associated with the specified charset object.
getUTF7() (static)
Gets an encoding for the UTF-7 format.
Returns: Encoding — Encoding A Encoding object for the UTF-7 format.
getUTF8() (static)
Gets an encoding for the UTF-8 format.
Returns: Encoding — Encoding A Encoding object for the UTF-8 format.
getUTF8NoBOM() (static)
Gets an encoding for the UTF-8 format without the UTF-8 identifier.
Returns: Encoding — Encoding A Encoding object for the UTF-8 format without UTF-8 identifier.
getUnicode() (static)
Gets an encoding for the UTF-16 format using the little endian byte order.
Returns: Encoding — Encoding A Encoding object for the UTF-16 format using the little endian byte