com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class TextEncodingInternal



  • public final class TextEncodingInternal
    extends Object
    • Constructor Detail

      • TextEncodingInternal

        public TextEncodingInternal(com.aspose.ms.System.Text.Encoding value)
        Internal constructor
        Parameters:
        value -
    • Method Detail

      • getASCII

        public static TextEncodingInternal getASCII()
        Gets an encoding for the ASCII (7-bit) character set.
        Returns:
        TextEncodingInternal instance
      • getBigEndianUnicode

        public static TextEncodingInternal getBigEndianUnicode()
        Gets an encoding for the UTF-16 format that uses the big endian byte order.
        Returns:
        TextEncodingInternal instance
      • getDefault

        public static TextEncodingInternal getDefault()
        Gets an encoding for the operating system's current ANSI code page.
        Returns:
        TextEncodingInternal instance
      • getUnicode

        public static TextEncodingInternal getUnicode()
        Gets an encoding for the UTF-16 format using the little endian byte order.
        Returns:
        TextEncodingInternal instance
      • getUTF32

        public static TextEncodingInternal getUTF32()
        Gets an encoding for the UTF-32 format using the little endian byte order.
        Returns:
        TextEncodingInternal instance
      • getUTF32BE

        public static TextEncodingInternal getUTF32BE()
        Gets an encoding for the UTF-16 format that uses the big endian byte order.
        Returns:
        TextEncodingInternal instance
      • getUTF7

        public static TextEncodingInternal getUTF7()
        Gets an encoding for the UTF-7 format.
        Returns:
        TextEncodingInternal instance
      • getUTF8

        public static TextEncodingInternal getUTF8()
        Gets an encoding for the UTF-8 format.
        Returns:
        TextEncodingInternal instance
      • getUTF8Unmarked

        public static TextEncodingInternal getUTF8Unmarked()
        Gets an encoding for the UTF-8 Unmarked format.
        Returns:
        TextEncodingInternal instance
      • getInternalFormat

        public com.aspose.ms.System.Text.Encoding getInternalFormat()
        Internal method
        Returns:
        Internal object
      • getEncoding

        public static TextEncodingInternal getEncoding(String name)
        Returns the encoding associated with the specified code page name.
        Parameters:
        name - The code page name of the preferred encoding. Any value returned by the WebName property is valid. Possible values are listed in the Name column of the table that appears in the Encoding class topic.
        Returns:
        TextEncodingInternal instance
      • toString

        public static String toString(TextEncodingInternal encoding)
        Returns a string that represents the current object.
        Parameters:
        encoding - TextEncodingInternal instance
        Returns:
        String object
      • getNames

        public static String[] getNames()
        Gets an array with encoding names.
        Returns:
      • getString

        public String getString(byte[] value)
        When overridden in a derived class, decodes all the bytes in the specified byte array into a string.
        Parameters:
        value - The byte array containing the sequence of bytes to decode.
        Returns:
        A string that contains the results of decoding the specified sequence of bytes.