|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.eaio.nativecall.Win32Verifier
A Verifier
for the Windows environment.
Constructor Summary | |
Win32Verifier()
Constructor for Win32Verifier. |
Method Summary | |
String |
getDefaultModule()
Returns "kernel32". |
Object |
handleString(String val,
String module,
String function)
If the function name ends on 'W' (Windows' Unicode functions), a char array is returned, otherwise a byte array
is returned.
|
boolean |
supports()
Verifies that the System property "os.name" starts
with "Windows". |
String |
verifyFunctionName(String function)
Throws a NullPointerException if the function
name is null or an empty String. |
String |
verifyModuleName(String module)
Returns the default module name if the module name is null
or an empty String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Win32Verifier()
Method Detail |
public boolean supports() throws SecurityException
System
property "os.name" starts
with "Windows".
supports
in interface Verifier
SecurityException
- because System
properties
may be queriedVerifier.supports()
public String verifyModuleName(String module)
null
or an empty String. If the module name contains forward slashes (/), they
are converted to backward slashes (\).
verifyModuleName
in interface Verifier
module
- the module name, may be null
null
Verifier.verifyModuleName(java.lang.String)
public String verifyFunctionName(String function)
NullPointerException
if the function
name is null
or an empty String. No further processing is
done.
verifyFunctionName
in interface Verifier
function
- the function name, may be null
null
Verifier.verifyFunctionName(java.lang.String)
public String getDefaultModule()
getDefaultModule
in interface Verifier
Verifier.getDefaultModule()
public Object handleString(String val, String module, String function)
char
array is returned, otherwise a byte
array
is returned.
The arrays are always null
-terminated.
handleString
in interface Verifier
val
- the String, never null
module
- the module name, never null
function
- the function name, never null
null
Verifier.handleString(java.lang.String,
java.lang.String,
java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |