Contents | Previous | Next |
Java Native Interface
Overview
Background
JDK 1.0 Native Method
Interface
Java Runtime
Interface
Raw Native Interface and Java/COM
Interface
Objectives
Java Native Interface
Approach
Programming to the JNI
Changes in JDK 1.1.2
JNI Interface
Functions and Pointers
Loading and Linking Native Methods
Resolving Native
Method Names
Native Method
Arguments
Global and Local
References
Implementing Local
References
Accessing Primitive
Arrays
Accessing Fields and
Methods
Reporting
Programming Errors
Java
Exceptions
Exceptions and Error
Codes
Asynchronous
Exceptions
Exception
Handling
3. JNI Types and Data Structures
Primitive
Types
Reference Types
Field and Method IDs
The Value Type
Type Signatures
Modified UTF-8 Strings
Interface
Function Table
Version Information
DefineClass
FindClass
GetSuperclass
IsAssignableFrom
Throw
ThrowNew
ExceptionOccurred
ExceptionDescribe
ExceptionClear
FatalError
ExceptionCheck
NewGlobalRef
DeleteGlobalRef
DeleteLocalRef
EnsureLocalCapacity
PushLocalFrame
PopLocalFrame
NewLocalRef
NewWeakGlobalRef
DeleteWeakGlobalRef
AllocObject
NewObject, NewObjectA, and
NewObjectV
GetObjectClass
GetObjectRefType
IsInstanceOf
IsSameObject
GetFieldID
Get
Set
GetMethodID
Call
CallNonvirtual
GetStaticFieldID
GetStatic
SetStatic
GetStaticMethodID
CallStatic
NewString
GetStringLength
GetStringChars
ReleaseStringChars
NewStringUTF
GetStringUTFLength
GetStringUTFChars
ReleaseStringUTFChars
GetStringRegion
GetStringUTFRegion
GetStringCritical
Release
StringCritical
GetArrayLength
NewObjectArray
GetObjectArrayElement
SetObjectArrayElement
New
Release
Set
ReleasePrimitiveArrayCritical
RegisterNatives
UnregisterNatives
NewDirectByteBuffer
GetDirectBufferAddress
GetDirectBufferCapacity
FromReflectedMethod
FromReflectedField
ToReflectedMethod
ToReflectedField
Creating the
VM
Attaching to the
VM
Unloading the VM
Library and Version Management
JNI_GetDefaultJavaVMInitArgs
JNI_GetCreatedJavaVMs
JNI_CreateJavaVM
DestroyJavaVM
AttachCurrentThread
AttachCurrentThreadAsDaemon
DetachCurrentThread
GetEnv
Contents | Previous | Next |
![]() Java Technology |
Copyright © 1993, 2018, Oracle and/or its affiliates. All rights reserved. |