com.aspose.cells

Class Encoding

  • java.lang.Object
    • com.aspose.cells.Encoding
public class Encoding 
extends java.lang.Object

Represents a character encoding.

Method Summary
booleanequals(Encoding other)
Determines whether the specified Encoding object is equal to the current instance.
booleanequals(java.lang.Objecto)
Determines whether the specified Object is equal to the current instance.
staticEncodinggetASCII()
Gets an encoding for the ASCII (7-bit) character set.
staticEncodinggetBigEndianUnicode()
Gets an encoding for the UTF-16 format using the big endian byte order.
staticEncodinggetDefault()
Gets an encoding for the operating system's current ANSI code page.
staticEncodinggetEncoding(intcodePage)
Returns the encoding associated with the specified code page identifier.
staticEncodinggetEncoding(java.lang.StringcharsetName)
Returns an encoding associated with the specified charset name.
staticEncodinggetEncoding(java.nio.charset.Charsetcharset)
Returns an encoding associated with the specified charset object.
staticEncodinggetUnicode()
Gets an encoding for the UTF-16 format using the little endian byte order.
staticEncodinggetUTF7()
Gets an encoding for the UTF-7 format.
staticEncodinggetUTF8()
Gets an encoding for the UTF-8 format.
staticEncodinggetUTF8NoBOM()
Gets an encoding for the UTF-8 format without the UTF-8 identifier.
 

    • Method Detail

      • getASCII

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

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

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

        public static Encoding 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

        public static Encoding 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

        public static Encoding 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

        public static Encoding 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

        public static Encoding getEncoding(int codePage)
        Returns the encoding associated with the specified code page identifier.
        Parameters:
        codePage - 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

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

        public static Encoding getEncoding(java.nio.charset.Charset charset)
        Returns an encoding associated with the specified charset object.
        Parameters:
        charset - specified charset object
        Returns:
        The Encoding object associated with the specified charset object.
      • equals

        public boolean equals(java.lang.Object o)
        Determines whether the specified Object is equal to the current instance.
        Parameters:
        o - 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

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