Class COM.odi.jcpp.StdCharConverter
java.lang.Object
|
+----COM.odi.jcpp.CharConverter
|
+----COM.odi.jcpp.StdCharConverter
- public class StdCharConverter
- extends CharConverter
This class implements the CharConverter protocol using the character
conversion capabilities of the java.io package.
-
StdCharConverter(String)
- Constructs a StdCharConverter which will convert using the specified
character encoding.
-
decodeCPPString(byte[])
- Create a a Java String by decoding the contents of the C++
character array using the encoding format supported by this converter.
-
decodeCPPStringContents(byte[])
- Create a a Java String by decoding the contents of the C++
character array using the encoding format supported by this converter.
-
encodeString(String)
- Encode the Java string str into a byte array using
the character encoding for this converter.
StdCharConverter
public StdCharConverter(String charEncoding)
- Constructs a StdCharConverter which will convert using the specified
character encoding. The encoding must be an
encoding recognized by java.io.OutputStreamWriter and
java.io.InputStreamReader.
decodeCPPString
public String decodeCPPString(byte linearObjectReference[])
- Create a a Java String by decoding the contents of the C++
character array using the encoding format supported by this converter.
- Parameters:
- linearObjectReference - The linear object reference to 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 encoding format supported by this converter.
- 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 character encoding for this converter.
- Overrides:
- encodeString in class CharConverter
Copyright © 1996, 1997, 1998 Object Design, Inc. All rights reserved.