com.jniwrapper.win32
Class FunctionName

java.lang.Object
  extended by com.jniwrapper.win32.FunctionName

public class FunctionName
extends java.lang.Object

This class stores general Windows API function name and returns the encoding-specific name on demand.


Constructor Summary
FunctionName(java.lang.String name)
          Creates instance of the FunctionName
FunctionName(java.lang.String name, boolean hasANSISuffix)
          Creates instance of the FunctionName
 
Method Summary
 java.lang.String getEncodingSpecificName(boolean unicode)
          Returns the encoding-specific function name.
 java.lang.String getName()
          Returns the name of the function without suffix
 boolean hasANSISuffix()
          Specifies whether the function name requires ANSI suffix or not
 java.lang.String toString()
          Returns encoding-specific name of the function
static boolean usesUnicodeNames()
          Specifies whether the Unicode functions name is used.
static void useUnicodeNames(boolean value)
          Sets the value of the property that specifies whether to use Unicode ore ANSI functions names
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionName

public FunctionName(java.lang.String name)
Creates instance of the FunctionName

Parameters:
name - The name of the function. This name will be converted to the name that correspond to the Unicode or ANSI function name depending on system requirements

FunctionName

public FunctionName(java.lang.String name,
                    boolean hasANSISuffix)
Creates instance of the FunctionName

Parameters:
name - The name of the function. This name will be converted to the name that correspond to the Unicode or ANSI function name depending on system requirements
hasANSISuffix - true if the function name requires ANSI suffix. Otherwise false
Method Detail

useUnicodeNames

public static void useUnicodeNames(boolean value)
Sets the value of the property that specifies whether to use Unicode ore ANSI functions names

Parameters:
value - true if the Unicode functions names must be used. Otherwise false.

usesUnicodeNames

public static boolean usesUnicodeNames()
Specifies whether the Unicode functions name is used.

Returns:
true if the Unicode functions names is used. Otherwise false.

hasANSISuffix

public boolean hasANSISuffix()
Specifies whether the function name requires ANSI suffix or not

Returns:
true if the function name requires ANSI suffix. Otherwise false

getName

public java.lang.String getName()
Returns the name of the function without suffix

Returns:
The name of the function without suffix

getEncodingSpecificName

public java.lang.String getEncodingSpecificName(boolean unicode)
Returns the encoding-specific function name.

Parameters:
unicode - if true, Unicode name will be returned.
Returns:
function name with encoding-specific suffix.

toString

public java.lang.String toString()
Returns encoding-specific name of the function

Overrides:
toString in class java.lang.Object
Returns:
Encoding-specific name of the function