public class ClrUtils
extends java.lang.Object
Constructor and Description |
---|
ClrUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
clrCheck(int res) |
static DotNetNativeTypes.ClrDateTime |
dateTimeToSystemTime(java.util.Calendar calendar)
Converts Java Calendar object to a ClrDateTime pointer
|
static DotNetNativeTypes.ClrDateTime |
dateTimeToSystemTime(java.util.Date date)
Converts Java Date object to a ClrDateTime pointer
|
static boolean |
getIsAPITypeMapperUnicode()
Gets the boolean value which determines whether the API will use unicode strings or ANSI strings when calling the
API methods that accepts or returns strings.
|
static com.sun.jna.Memory |
getWideStringMemory(java.lang.String value)
Converts Java string to a WideString memory pointer
|
static java.lang.String |
joinTypeNames(java.lang.String[] typeNames) |
static void |
setIsAPITypeMapperUnicode(boolean value)
Sets the boolean value which determines whether the API will use unicode strings or ANSI strings when calling the
API methods that accepts or returns strings.
|
static java.util.Date |
systemTimeToDate(DotNetNativeTypes.ClrDateTime dateTime)
Converts ClrDateTime pointer to a Java Date object
|
static java.util.Calendar |
systemTimeToDateTime(DotNetNativeTypes.ClrDateTime dateTime)
Converts ClrDateTime pointer to a Java calendar object
|
public static java.util.Calendar systemTimeToDateTime(DotNetNativeTypes.ClrDateTime dateTime)
dateTime
- to be converted to Java calendar objectpublic static java.util.Date systemTimeToDate(DotNetNativeTypes.ClrDateTime dateTime)
dateTime
- is a ClrDateTime pointer which will be converted to Java Date objectpublic static DotNetNativeTypes.ClrDateTime dateTimeToSystemTime(java.util.Calendar calendar)
calendar
- to be converted to a ClrDateTime pointerpublic static DotNetNativeTypes.ClrDateTime dateTimeToSystemTime(java.util.Date date)
date
- to be converted to a ClrDateTime pointerpublic static java.lang.String joinTypeNames(java.lang.String[] typeNames)
public static final boolean getIsAPITypeMapperUnicode()
public static final void setIsAPITypeMapperUnicode(boolean value)
value
- is used to determine whether API will send or return a Unicode string if it is true or Ansi string if it is falsepublic static final com.sun.jna.Memory getWideStringMemory(java.lang.String value)
value
- is the Java string value to be converted