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.


Constructor Index

 o StdCharConverter(String)
Constructs a StdCharConverter which will convert using the specified character encoding.

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 character encoding for this converter.

Constructors

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

Methods

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