Class COM.odi.jcpp.UTF8CharConverter

java.lang.Object
   |
   +----COM.odi.jcpp.CharConverter
           |
           +----COM.odi.jcpp.UTF8CharConverter

public class UTF8CharConverter
extends CharConverter
This class implements the CharConverter protocol using a fixed conversion between the Java variant of UTF-8 and Unicode.


Constructor Index

 o UTF8CharConverter()
Constructs a StdCharConverter which will convert using the Java variant of UTF-8 character encoding.

Method Index

 o decodeCPPString(byte[])
Create a Java String by decoding the contents of the C++ character array using the Java UTF-8 character encoding format.
 o decodeCPPStringContents(byte[])
Create a a Java String by decoding the contents of the C++ character array using the Java UTF-8 character encoding format.
 o encodeString(String)
Encode the Java string str into a byte array using the Java UTF-8 character encoding.

Constructors

 o UTF8CharConverter
  public UTF8CharConverter()
Constructs a StdCharConverter which will convert using the Java variant of UTF-8 character encoding.

Methods

 o decodeCPPString
  public String decodeCPPString(byte linearObjectReference[])
Create a Java String by decoding the contents of the C++ character array using the Java UTF-8 character encoding format.

Parameters:
linearObjectReference - The linear object reference of the C++ char array to be decoded.
Overrides:
decodeCPPString in class CharConverter
 o decodeCPPStringContents
  public String decodeCPPStringContents(byte cppStringContents[])
Create a a Java String by decoding the contents of the C++ character array using the Java UTF-8 character encoding format.

Parameters:
cppStringContents - The contents of the C++ char array to be decoded.
Overrides:
decodeCPPStringContents in class CharConverter
 o encodeString
  public byte[] encodeString(String str)
Encode the Java string str into a byte array using the Java UTF-8 character encoding.

Overrides:
encodeString in class CharConverter

Copyright © 1996, 1997, 1998 Object Design, Inc. All rights reserved.