org.eclipse.swt.internal
Class Converter
java.lang.Object
org.eclipse.swt.internal.Converter
public final class Converter
- extends java.lang.Object
This class implements the conversions between unicode characters
and the platform supported representation for characters.
Note that, unicode characters which can not be found in the platform
encoding will be converted to an arbitrary platform specific character.
Method Summary |
static java.lang.String |
defaultCodePage()
Returns the default code page for the platform where the
application is currently running. |
static char[] |
mbcsToWcs(java.lang.String codePage,
byte[] buffer)
|
static byte[] |
wcsToMbcs(java.lang.String codePage,
char[] buffer,
boolean terminate)
|
static byte[] |
wcsToMbcs(java.lang.String codePage,
java.lang.String string,
boolean terminate)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullByteArray
public static final byte[] NullByteArray
EmptyByteArray
public static final byte[] EmptyByteArray
EmptyCharArray
public static final char[] EmptyCharArray
Converter
public Converter()
defaultCodePage
public static java.lang.String defaultCodePage()
- Returns the default code page for the platform where the
application is currently running.
- Returns:
- the default code page
mbcsToWcs
public static char[] mbcsToWcs(java.lang.String codePage,
byte[] buffer)
wcsToMbcs
public static byte[] wcsToMbcs(java.lang.String codePage,
java.lang.String string,
boolean terminate)
wcsToMbcs
public static byte[] wcsToMbcs(java.lang.String codePage,
char[] buffer,
boolean terminate)