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.
-
UTF8CharConverter()
- Constructs a StdCharConverter which will convert using
the Java variant of UTF-8 character encoding.
-
decodeCPPString(byte[])
- Create a Java String by decoding the contents of the C++
character array using the Java UTF-8 character encoding format.
-
decodeCPPStringContents(byte[])
- Create a a Java String by decoding the contents of the C++
character array using the Java UTF-8 character encoding format.
-
encodeString(String)
- Encode the Java string str into a byte array using
the Java UTF-8 character encoding.
UTF8CharConverter
public UTF8CharConverter()
- Constructs a StdCharConverter which will convert using
the Java variant of UTF-8 character encoding.
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
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
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.