libperun

Class std.text.TextCodecUTF16

Synopsis

public  class TextCodecUTF16 extends TextCodec

Codec for UTF-16.

Fields

public static final int BYTE_ORDER_BE

A value to be given to the constructor to indicate big-endian byte order.

public static final int BYTE_ORDER_LE

A value to be given to the constructor to indicate little-endian byte order.

Constructors

public TextCodecUTF16();

Default constructor. Use big-endian byte order.

public TextCodecUTF16(int byteOrder);

Construct the codec to use the specified byte order.

Arguments
byteOrderThe byte order (TextCodecUTF16.BYTE_ORDER_BE or TextCodecUTF16.BYTE_ORDER_LE).

Methods

public byte_t[] encode(String str);

No description given

public String decode(byte_t[] bytes);

No description given