The Java Native InterfaceProgrammer’s Guide and Specification phần 3 docx
... callback from native code (a native /Java callback) compare with the cost of calling a native method (a Java/ native call), and with the cost of calling a regular method (a Java/ Java call)? The answer ... reference and the other for the result returned from the method call. Next, it obtains the class reference from the object and looks up the method ID. D...
Ngày tải lên: 13/08/2014, 08:20
... Evolution of the JNI The need for Java applications to interoperate with native code has been recog- nized since the very early days of the Java platform. The first release of the Java platform, Java ... Because of the 1. As used herein, the phrases Java virtual machine” or Java VM” mean a virtual machine for the Java platform. Similarly, the phrase Java API”...
Ngày tải lên: 13/08/2014, 08:20
... STRINGS, AND ARRAYS Mapping of Types 3. 1 .3 23 Figure 3. 1 The JNIEnv Interface Pointer The second argument differs depending on whether the native method is a static or an instance method. The second ... ([Ljava/lang/String;)V private native nativeMethod ()V The -s flag informs javap to output JNI descriptor strings rather than types as they appear in the Java progra...
Ngày tải lên: 13/08/2014, 08:20
The Java Native InterfaceProgrammer’s Guide and Specification phần 4 ppt
... scheduled. The thread models match if the native code uses the same thread model as the Java virtual machine implementation. If the Java virtual machine implementation uses native thread support, the native ... convention and to accept two additional arguments (the JNIEnv pointer and the “this” pointer). 2. The stub converts between Java programming language t...
Ngày tải lên: 13/08/2014, 08:20
The Java Native InterfaceProgrammer’s Guide and Specification phần 5 pdf
... Application and Native Code A common question when designing a Java application supported by native code is “What, and how much, should be in native code?” The boundaries between the native code and the ... the library name and function name to locale-spe- cific C strings, and then calls the Win32 API functions LoadLibrary and GetProcAddress to locate the C fu...
Ngày tải lên: 13/08/2014, 08:20
The Java Native InterfaceProgrammer’s Guide and Specification phần 6 pdf
... language. 12.1.1 Primitive Types The following table describes the primitive types in the Java programming lan- guage and the corresponding types in the JNI. Like their counterparts in the Java programming language, ... characters, and so on, are copied between the Java virtual machine and native code. Objects, on the other hand, are passed jni.book Page 155 Thur...
Ngày tải lên: 13/08/2014, 08:20
The Java Native InterfaceProgrammer’s Guide and Specification phần 7 pps
... are to be passed to the method immediately following the methodID argument. The Call<Type>Method function accepts these arguments and passes them to the method that the programmer wishes ... implementations rely on the return value of the JNI_OnLoad handler to determine the argument passing convention of native method implementation functions in a given native libr...
Ngày tải lên: 13/08/2014, 08:20
The Java Native InterfaceProgrammer’s Guide and Specification phần 9 doc
... for- mat. The function begins the translation at offset start and places the result in the given buffer buf. The str reference and buf buffer must not be NULL. Note that the len argument denotes the ... triggers the execution of this function. The JNI_OnLoad function returns the JNI version number required by the native library. If the native library does not e...
Ngày tải lên: 13/08/2014, 08:20
The Java Native InterfaceProgrammer’s Guide and Specification phần 10 pdf
... 215 NoSuchFieldError, 226, 233 NoSuchMethodError, 47, 228, 236 , 2 73 O object array, 33 Object.wait, notify, and notifyAll, 95 ObjectArrayTest example, 38 jni.book Page 30 0 Thursday, February 21, 2002 4 :36 PM Simpo ... 58 Java_ prefix, 22 Java_ VMInitArgs, 251 javac compiler, 11, 14 javah tool, 9, 11, 14 javai.dll, 87 javai.lib, 87 javap tool, 44 JavaVM interface create, 83 dest...
Ngày tải lên: 13/08/2014, 08:20
PL/SQL User’s Guide and Reference phần 3 pdf
... History’, 5), Course(2 130 , The Renaissance’, 3) , Course(2 132 , The Reformation’, 3) , Course (31 05, ’History of Ancient Greece’, 4), Course (33 21, ’Early Japan’, 4), Course (36 01, ’Latin America ... VARCHAR2(25)); Using the BULK COLLECT Clause Collections and Records 4 -37 Using the BULK COLLECT Clause The keywords BULK COLLECT tell the SQL engine to bulk-bind outpu...
Ngày tải lên: 07/08/2014, 11:22