|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.cldc.jna.NativeLibrary
public class NativeLibrary
Represents a handle to a runtime library (for example, as returned by the POSIX function "dlopen" http://www.opengroup.org/onlinepubs/009695399/functions/dlopen.html
Method Summary | |
---|---|
void |
dispose()
Close the library, as in dlclose. |
static String |
errorStr()
Get any error message provided by the platform (as in dlerror). |
BlockingFunction |
getBlockingFunction(String funcName)
Dynamically look up a blocking native function by name. |
static NativeLibrary |
getDefaultInstance()
Return reference to the "default" library. |
Function |
getFunction(String funcName)
Dynamically look up a native function by name. |
VarPointer |
getGlobalVariableAddress(String varName,
int size)
Dynamically look up a native variable by name. |
static NativeLibrary |
getInstance(String name)
Look up a native libray named "name". |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Function getFunction(String funcName)
funcName
-
RuntimeException
- if there is no function by that name.public BlockingFunction getBlockingFunction(String funcName)
funcName
-
RuntimeException
- if there is no function by that name.public VarPointer getGlobalVariableAddress(String varName, int size)
varName
- size
- the size of the variable in bytes
RuntimeException
- if there is no function by that name.public static NativeLibrary getInstance(String name)
name
- short library name, full file name, or path to the library file
public static NativeLibrary getDefaultInstance()
public void dispose()
RuntimeException
- if dlcose failspublic static String errorStr()
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class Object
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |