com.interfaceware.chameleon
Class ChameleonEncoding

java.lang.Object
  extended by com.interfaceware.chameleon.ChameleonEncoding

public class ChameleonEncoding
extends java.lang.Object

This class contains functions to change the current encoding used internally by Chameleon at runtime. Changes made here affect all currently instantiated Engines and Chameleon network connections.

The locale set here is used to determine how to

1) Translate .NET and Java unicode strings to and from the internal representation used in Chameleon for both Engine and network operations. See http://www.interfaceware.com/manual/setting_encoding.html for more details.

2) Determine how strings are parsed with an Engine.


Constructor Summary
ChameleonEncoding()
           
ChameleonEncoding(long Handle)
           
 
Method Summary
static int countOfTranslationLocale()
          Get the total number of supported translation locales.
protected  void finalize()
           
static java.lang.String getCurrentTranslationLocale()
          Get the translation locale.
 void release()
           
static void setCurrentTranslationLocale(java.lang.String NewLocale)
          Set the translation locale.
static java.lang.String translationLocale(int LocaleIndex)
          Get a translation locale at a particular index.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChameleonEncoding

public ChameleonEncoding()
                  throws ChameleonException
Throws:
ChameleonException

ChameleonEncoding

public ChameleonEncoding(long Handle)
                  throws ChameleonException
Throws:
ChameleonException
Method Detail

release

public void release()
             throws ChameleonException
Throws:
ChameleonException

finalize

protected void finalize()
                 throws ChameleonException
Overrides:
finalize in class java.lang.Object
Throws:
ChameleonException

getCurrentTranslationLocale

public static java.lang.String getCurrentTranslationLocale()
                                                    throws ChameleonException

Get the translation locale.

The initial value is extracted from the default system locale.

Throws:
ChameleonException

setCurrentTranslationLocale

public static void setCurrentTranslationLocale(java.lang.String NewLocale)
                                        throws ChameleonException

Set the translation locale. See http://www.interfaceware.com/manual/setting_encoding.html for more details

Parameters:
NewLocale - New Locale Setting
Throws:
ChameleonException

countOfTranslationLocale

public static int countOfTranslationLocale()
                                    throws ChameleonException

Get the total number of supported translation locales.

Throws:
ChameleonException

translationLocale

public static java.lang.String translationLocale(int LocaleIndex)
                                          throws ChameleonException

Get a translation locale at a particular index.

Parameters:
LocaleIndex - Locale Index
Throws:
ChameleonException