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 * getLastErrorString 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 *defaultDetail);
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
|
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 * getLastErrorString 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 *defaultDetail);
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 /* helper with 2 message strings, uses JNU_ThrowByNameWithMessageAndLastError */
116 JNIEXPORT void JNICALL
117 JNU_ThrowByNameWithTwoMessagesAndLastError
118 (JNIEnv *env, const char *name, const char *message1, const char *message2);
119
120
121 /* Throw an IOException, using the last-error string for the detail
122 * string. If the last-error string is NULL, use the given default
123 * detail string.
124 */
125 JNIEXPORT void JNICALL
126 JNU_ThrowIOExceptionWithLastError(JNIEnv *env, const char *defaultDetail);
127
128 /* Convert between Java strings and i18n C strings */
129 JNIEXPORT jstring
130 NewStringPlatform(JNIEnv *env, const char *str);
131
132 JNIEXPORT const char *
133 GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy);
134
135 JNIEXPORT jstring JNICALL
136 JNU_NewStringPlatform(JNIEnv *env, const char *str);
137
138 JNIEXPORT const char * JNICALL
139 JNU_GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy);
140
|