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.


Variable Index

 o EUCJIS
Constant for EUC JIS character encoding.
 o JIS
Constant for JIS character encoding.
 o SJIS
Constant for Shift JIS character encoding.
 o UTF8
Constant for UTF8 character encoding.

Constructor Index

 o CppCharConverter(int)
Constructs a CppCharConverter that uses the specified character encoding.

Method Index

 o 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.
 o 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.
 o encodeString(String)
Uses the character encoding for this converter to encode the Java String str into a byte array.

Variables

 o EUCJIS
  public final static int EUCJIS
Constant for EUC JIS character encoding.

 o JIS
  public final static int JIS
Constant for JIS character encoding.

 o SJIS
  public final static int SJIS
Constant for Shift JIS character encoding.

 o UTF8
  public final static int UTF8
Constant for UTF8 character encoding.

Constructors

 o 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.

Methods

 o 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
 o 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
 o 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.