com.jniwrapper.win32
Class WinFunctionCache

java.lang.Object
  extended by com.jniwrapper.util.FunctionCache
      extended by com.jniwrapper.win32.WinFunctionCache
Direct Known Subclasses:
AdvApi32, ComDlg32, Gdi32, Kernel32, Msimg32, Psapi, Shell32, User32

public class WinFunctionCache
extends com.jniwrapper.util.FunctionCache

This class provides functionality for selecting appropriate function instance between ANSI and Unicode analogs available in Win32 API depending on the configuration of the cache.

In addition, this class is a factory for string parameters, which are created also according to whether Unicode or ANSI functions should be used.


Constructor Summary
WinFunctionCache(com.jniwrapper.Library library)
           
WinFunctionCache(java.lang.String libraryName)
           
 
Method Summary
 boolean isUnicode()
           
 void setUnicode(boolean unicode)
          Instructs the cache to use Unicode or ANSI functions and parameter types.
protected  void setupEncoding()
           
 
Methods inherited from class com.jniwrapper.util.FunctionCache
getFunction, getVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WinFunctionCache

public WinFunctionCache(java.lang.String libraryName)

WinFunctionCache

public WinFunctionCache(com.jniwrapper.Library library)
Method Detail

setupEncoding

protected void setupEncoding()

isUnicode

public boolean isUnicode()

setUnicode

public void setUnicode(boolean unicode)
Instructs the cache to use Unicode or ANSI functions and parameter types.

Parameters:
unicode - if true, Unicode names and types will be used; otherwise ANSI.