Class COM.odi.jcpp.CppCharConverter
java.lang.Object
|
+----COM.odi.jcpp.CharConverter
|
+----COM.odi.jcpp.CppCharConverter
- public class CppCharConverter
- extends CharConverter
This class uses the Object Design native C++ Japanese
string conversion library
to implement the CharConverter protocol.
-
EUCJIS
- Constant for EUC JIS character encoding.
-
JIS
- Constant for JIS character encoding.
-
SJIS
- Constant for Shift JIS character encoding.
-
UTF8
- Constant for UTF8 character encoding.
-
CppCharConverter(int)
- Constructs a CppCharConverter that uses the specified
character encoding.
-
decodeCPPString(byte[])
- Creates a a Java String by using the encoding format
supported by this converter to decode the contents of a
C++ char array identified by a linear object reference.
-
decodeCPPStringContents(byte[])
- Creates a a Java String by using the encoding format
supported by this converter to decode the contents of a
C++ char array identified by a C++ string.
-
encodeString(String)
- Uses the character encoding for this converter to
encode the Java String str into a byte array.
EUCJIS
public final static int EUCJIS
- Constant for EUC JIS character encoding.
JIS
public final static int JIS
- Constant for JIS character encoding.
SJIS
public final static int SJIS
- Constant for Shift JIS character encoding.
UTF8
public final static int UTF8
- Constant for UTF8 character encoding.
CppCharConverter
public CppCharConverter(int charEncoding)
- Constructs a CppCharConverter that uses the specified
character encoding. The encoding must be one of the character
encoding constants specified above.
decodeCPPString
public String decodeCPPString(byte linearObjectReference[])
- Creates a a Java String by using the encoding format
supported by this converter to decode the contents of a
C++ char array identified by a linear object reference.
- 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[])
- Creates a a Java String by using the encoding format
supported by this converter to decode the contents of a
C++ char array identified by a C++ string.
- Parameters:
- cppStringContents - The contents of the C++ char array to be decoded.
- Overrides:
- decodeCPPStringContents in class CharConverter
encodeString
public byte[] encodeString(String str)
- Uses the character encoding for this converter to
encode the Java String str into a byte array.
- Overrides:
- encodeString in class CharConverter
Copyright © 1996, 1997, 1998 Object Design, Inc. All rights reserved.