aspose.cells
Class Encoding

Represents a character encoding.

Method Summary
functionequals(other)
           Determines whether the specified Encoding object is equal to the current instance.
functionequals(o)
           Determines whether the specified Object is equal to the current instance.
static functiongetASCII()
           Gets an encoding for the ASCII (7-bit) character set.
static functiongetBigEndianUnicode()
           Gets an encoding for the UTF-16 format using the big endian byte order.
static functiongetDefault()
           Gets an encoding for the operating system's current ANSI code page.
static functiongetEncoding(codePage)
           Returns the encoding associated with the specified code page identifier.
static functiongetEncoding(charsetName)
           Returns an encoding associated with the specified charset name.
static functiongetEncoding(charset)
           Returns an encoding associated with the specified charset object.
static functiongetUnicode()
           Gets an encoding for the UTF-16 format using the little endian byte order.
static functiongetUTF7()
           Gets an encoding for the UTF-7 format.
static functiongetUTF8()
           Gets an encoding for the UTF-8 format.
static functiongetUTF8NoBOM()
           Gets an encoding for the UTF-8 format without the UTF-8 identifier.
 

Method Detail

getASCII

static function getASCII()
Gets an encoding for the ASCII (7-bit) character set.
Returns:
A Encoding object for the ASCII (7-bit) character set.

getUTF7

static function getUTF7()
Gets an encoding for the UTF-7 format.
Returns:
A Encoding object for the UTF-7 format.

getUTF8

static function getUTF8()
Gets an encoding for the UTF-8 format.
Returns:
A Encoding object for the UTF-8 format.

getUTF8NoBOM

static function getUTF8NoBOM()
Gets an encoding for the UTF-8 format without the UTF-8 identifier.
Returns:
A Encoding object for the UTF-8 format without UTF-8 identifier.

getUnicode

static function getUnicode()
Gets an encoding for the UTF-16 format using the little endian byte order.
Returns:
A Encoding object for the UTF-16 format using the little endian byte

getBigEndianUnicode

static function getBigEndianUnicode()
Gets an encoding for the UTF-16 format using the big endian byte order.
Returns:
A Encoding object for the UTF-16 format using the big endian byte

getDefault

static function getDefault()
Gets an encoding for the operating system's current ANSI code page.
Returns:
An encoding for the operating system's current ANSI code page.

getEncoding

static function getEncoding(codePage)
Returns the encoding associated with the specified code page identifier.
Parameters:
codePage: Number - The code page identifier of the preferred encoding. -or- 0, to use the default encoding.
Returns:
The Encoding object associated with the specified code page.

getEncoding

static function getEncoding(charsetName)
Returns an encoding associated with the specified charset name.
Parameters:
charsetName: String - specified charset name
Returns:
The Encoding object associated with the specified charset name.

getEncoding

static function getEncoding(charset)
Returns an encoding associated with the specified charset object.
Parameters:
charset: Charset - specified charset object
Returns:
The Encoding object associated with the specified charset object.

equals

function equals(o)
Determines whether the specified Object is equal to the current instance.
Parameters:
o: Object - The Object to compare with the current instance.
Returns:
true if value is an instance of Encoding and is equal to the current instance; otherwise, false.

equals

function equals(other)
Determines whether the specified Encoding object is equal to the current instance.
Parameters:
other: Encoding - The Encoding object to compare with the current instance.
Returns:
true if value is equal to the current instance; otherwise, false.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.