Anfang des Inhaltsbereichs

HintergrunddokumentationHintergrunddokumentation Interface if_ixml_encoding  Dokument im Navigationsbaum lokalisieren

specializes

enumerations

methods

 

 

enumeration ByteOrder

The values of the ByteOrder enumeration define the byte ordering scheme used by a particular character set in case a single character of this encoding is represented by more than one byte. Typical examples are UCS-2 or UCS-4.

The byte order is unspecified (value "none") in case of MBCS (multibyte character set) encodings, single-byte encodings (e.g. Latin1) or UCS-8 and UCS-16.

interface

if_ixml_encoding

values

co_little_endian = 0

The character set uses little endian byte ordering.

co_big_endian = 1

The character set uses big endian byte ordering.

co_unusual2143 = 2

The character set uses an unusual byte ordering (2143).

co_unusual3412 = 3

The character set uses an unusual byte ordering (3412).

co_none = 0

The character set has no specific byte ordering (e.g. UTF-8).

abap signature

constants:

co_little_endian type I value 0,

co_big_endian type I value 1,

co_unusual2143 type I value 2,

co_unusual3412 type I value 3,

co_none type I value 0.

 

 

method clone

Creates a copy (clone) of this object.

interface

if_ixml_encoding

return value

Returns a pointer to the cloned object.

abap signature

method clone

returning

value(rval) type ref to if_ixml_encoding.

 

 

method get_byte_order

Returns the currently set byte order for this this encoding object.

interface

if_ixml_encoding

return value

Returns the byte order currently set.

abap signature

method get_byte_order

returning

value(rval) type I.

 

 

method get_character_set

Returns the name of this encoding's character set.

interface

if_ixml_encoding

return value

Returns the name of this encoding's character set or null if an error occured.

abap signature

method get_character_set

returning

value(rval) type string.

 

 

method set_byte_order

Sets the byte order of this encoding object (see iXMLEncoding::ByteOrder).

interface

if_ixml_encoding

parameters

byte_order

The byte order to set.

return value

Returns true if the byte order could be set for the current character set.

abap signature

method set_byte_order

importing

byte_order type I

returning

value(rval) type boolean.

 

 

method set_character_set

Sets the name of this encoding object's character set (e.g. "UTF-8" or "ISO-10646-UCS-2").

interface

if_ixml_encoding

parameters

charset

The name of the character set (case-insensitive). The following names are supported: utf-8, utf-16, ucs-2, iso-10646-ucs-2, ucs-4, iso-10646-ucs-4, usascii, iso-8859-1, latin1, iso-8859-2, latin2, iso-8859-3, latin3, iso-8859-4, latin4, iso-8859-5, cyrillic, iso-8859-6, arabic, iso-8859-7, greek, iso-8859-8, hebrew, iso-8859-9, latin5, iso-8859-10, latin6, iso-8859-11, thai, iso-8859-13, latin7, iso-8859-14, latin8, iso-8859-15, latin9 .

return value

Returns true if the name could be set, otherwise the specified character set is not supported.

abap signature

method set_character_set

importing

charset type string

returning

value(rval) type boolean.

 

 

method query_interface

Queries the specified interface.

interface

if_ixml_encoding

parameters

iid

The interface ID of the interface to query.

return value

Returns a reference to the queried interface or null if no such interface is supported.

abap signature

method query_interface

importing

iid type I

returning

value(rval) type I.