org.pentaho.reporting.libraries.fonts.encoding.manual

Class Utf16LE

public class Utf16LE extends Object implements ComplexEncoding

Creation-Date: 20.04.2006, 18:01:39

Author: Thomas Morgner

Field Summary
static intMAX_CHAR
Constructor Summary
Utf16LE()
Method Summary
CodePointBufferdecode(ByteBuffer text, CodePointBuffer buffer)
CodePointBufferdecode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling)
CodePointBufferdecode(char[] chars, int offset, int length, CodePointBuffer buffer)
CodePointBufferdecodeString(String text, CodePointBuffer buffer)
ByteBufferencode(CodePointBuffer text, ByteBuffer buffer)
Encode, but ignore errors.
ByteBufferencode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling)
StringencodeString(CodePointBuffer buffer)
static Utf16LEgetInstance()
StringgetName()
StringgetName(Locale locale)
booleanisEncodingSupported()
Checks, whether this implementation supports encoding of character data.
booleanisUnicodeCharacterSupported(int c)

Field Detail

MAX_CHAR

public static final int MAX_CHAR

Constructor Detail

Utf16LE

public Utf16LE()

Method Detail

decode

public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer)

decode

public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling)

decode

public CodePointBuffer decode(char[] chars, int offset, int length, CodePointBuffer buffer)

decodeString

public CodePointBuffer decodeString(String text, CodePointBuffer buffer)

encode

public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer)
Encode, but ignore errors.

Parameters: text buffer

Returns:

encode

public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling)

encodeString

public String encodeString(CodePointBuffer buffer)

getInstance

public static Utf16LE getInstance()

getName

public String getName()

getName

public String getName(Locale locale)

isEncodingSupported

public boolean isEncodingSupported()
Checks, whether this implementation supports encoding of character data.

Returns:

isUnicodeCharacterSupported

public boolean isUnicodeCharacterSupported(int c)