|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jniwrapper.util.FunctionCache | +--com.jniwrapper.win32.WinFunctionCache | +--com.jniwrapper.win32.Kernel32
This class provides functions from Kernel32 library.
Method Summary | |
static Function |
get(java.lang.Object functionName)
|
static Kernel32 |
getInstance()
|
boolean |
isUnicode()
Says if ANSI or Unicode functions should be used. |
void |
setUnicode(boolean unicode)
Instructs the cache use Unicode or ANSI functions and parameter types. |
Methods inherited from class com.jniwrapper.win32.WinFunctionCache |
getFunction, stringParam, stringParam, stringParam, stringParam |
Methods inherited from class com.jniwrapper.util.FunctionCache |
getFunction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean isUnicode()
Detects the platform if this wasn't done before, or property
wasn't explicitely modified directly via setUnicode()
.
If the property wasn't set explicitely, assumes that Unicode should
be used if the underlying OS is NT-based.
NOTE: Since the Unicode support detection is based on platform version
detection, which itself requires Kernel32
instance, the
deteciton cannot be permormed in the constructor to prevent recursion,
and should be delayed until actually queried.
isUnicode
in class WinFunctionCache
public void setUnicode(boolean unicode)
WinFunctionCache
setUnicode
in class WinFunctionCache
unicode
- if true Unicode names and types will be used, otherwise ANSI.public static Kernel32 getInstance()
public static Function get(java.lang.Object functionName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |