88 JNIEXPORT void JNICALL
89 JNU_ThrowNoSuchFieldError(JNIEnv *env, const char *msg);
90
91 JNIEXPORT void JNICALL
92 JNU_ThrowNoSuchMethodError(JNIEnv *env, const char *msg);
93
94 JNIEXPORT void JNICALL
95 JNU_ThrowStringIndexOutOfBoundsException(JNIEnv *env, const char *msg);
96
97 JNIEXPORT void JNICALL
98 JNU_ThrowInstantiationException(JNIEnv *env, const char *msg);
99
100 /* Throw an exception by name, using the string returned by
101 * JVM_LastErrorString for the detail string. If the last-error
102 * string is NULL, use the given default detail string.
103 */
104 JNIEXPORT void JNICALL
105 JNU_ThrowByNameWithLastError(JNIEnv *env, const char *name,
106 const char *defaultMessage);
107
108 /* Throw an IOException, using the last-error string for the detail
109 * string. If the last-error string is NULL, use the given default
110 * detail string.
111 */
112 JNIEXPORT void JNICALL
113 JNU_ThrowIOExceptionWithLastError(JNIEnv *env, const char *defaultDetail);
114
115 /* Convert between Java strings and i18n C strings */
116 JNIEXPORT jstring
117 NewStringPlatform(JNIEnv *env, const char *str);
118
119 JNIEXPORT const char *
120 GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy);
121
122 JNIEXPORT jstring JNICALL
123 JNU_NewStringPlatform(JNIEnv *env, const char *str);
124
125 JNIEXPORT const char * JNICALL
126 JNU_GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy);
127
|
88 JNIEXPORT void JNICALL
89 JNU_ThrowNoSuchFieldError(JNIEnv *env, const char *msg);
90
91 JNIEXPORT void JNICALL
92 JNU_ThrowNoSuchMethodError(JNIEnv *env, const char *msg);
93
94 JNIEXPORT void JNICALL
95 JNU_ThrowStringIndexOutOfBoundsException(JNIEnv *env, const char *msg);
96
97 JNIEXPORT void JNICALL
98 JNU_ThrowInstantiationException(JNIEnv *env, const char *msg);
99
100 /* Throw an exception by name, using the string returned by
101 * JVM_LastErrorString for the detail string. If the last-error
102 * string is NULL, use the given default detail string.
103 */
104 JNIEXPORT void JNICALL
105 JNU_ThrowByNameWithLastError(JNIEnv *env, const char *name,
106 const char *defaultMessage);
107
108 /* Throw an exception by name, using a given message and the string
109 * returned by getLastErrorString to construct the detail string.
110 */
111 JNIEXPORT void JNICALL
112 JNU_ThrowByNameWithMessageAndLastError
113 (JNIEnv *env, const char *name, const char *message);
114
115 /* Throw an IOException, using the last-error string for the detail
116 * string. If the last-error string is NULL, use the given default
117 * detail string.
118 */
119 JNIEXPORT void JNICALL
120 JNU_ThrowIOExceptionWithLastError(JNIEnv *env, const char *defaultDetail);
121
122 /* Convert between Java strings and i18n C strings */
123 JNIEXPORT jstring
124 NewStringPlatform(JNIEnv *env, const char *str);
125
126 JNIEXPORT const char *
127 GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy);
128
129 JNIEXPORT jstring JNICALL
130 JNU_NewStringPlatform(JNIEnv *env, const char *str);
131
132 JNIEXPORT const char * JNICALL
133 JNU_GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy);
134
|