Class COM.odi.jcpp.CharConverter

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

public class CharConverter
extends Object
This abstract class defines the protocol by which C++ char array <-> Java String conversion is done.


Method Index

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

Methods

 o decodeCPPString
  public abstract 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:
cppString - The linearObjectReference which refers to the C++ char array.
 o decodeCPPStringContents
  public abstract 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.
 o encodeString
  public abstract byte[] encodeString(String str)
Encode the Java string str into a byte array using the specified character encoding.


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