76 */ 77 JNIEXPORT void JNICALL 78 JNU_ThrowByNameWithLastError(JNIEnv *env, const char *name, 79 const char *defaultDetail); 80 81 /* Throw an exception by name, using a given message and the string 82 * returned by getLastErrorString to construct the detail string. 83 */ 84 JNIEXPORT void JNICALL 85 JNU_ThrowByNameWithMessageAndLastError 86 (JNIEnv *env, const char *name, const char *message); 87 88 /* Throw an IOException, using the last-error string for the detail 89 * string. If the last-error string is NULL, use the given default 90 * detail string. 91 */ 92 JNIEXPORT void JNICALL 93 JNU_ThrowIOExceptionWithLastError(JNIEnv *env, const char *defaultDetail); 94 95 /* Convert between Java strings and i18n C strings */ 96 JNIEXPORT jstring 97 NewStringPlatform(JNIEnv *env, const char *str); 98 99 JNIEXPORT const char * 100 GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy); 101 102 JNIEXPORT jstring JNICALL 103 JNU_NewStringPlatform(JNIEnv *env, const char *str); 104 105 JNIEXPORT const char * JNICALL 106 JNU_GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy); 107 108 JNIEXPORT void JNICALL 109 JNU_ReleaseStringPlatformChars(JNIEnv *env, jstring jstr, const char *str); 110 111 /* Class constants */ 112 JNIEXPORT jclass JNICALL 113 JNU_ClassString(JNIEnv *env); 114 115 /* Copy count number of arguments from src to dst. Array bounds 116 * and ArrayStoreException are checked. 117 */ 118 JNIEXPORT jint JNICALL | 76 */ 77 JNIEXPORT void JNICALL 78 JNU_ThrowByNameWithLastError(JNIEnv *env, const char *name, 79 const char *defaultDetail); 80 81 /* Throw an exception by name, using a given message and the string 82 * returned by getLastErrorString to construct the detail string. 83 */ 84 JNIEXPORT void JNICALL 85 JNU_ThrowByNameWithMessageAndLastError 86 (JNIEnv *env, const char *name, const char *message); 87 88 /* Throw an IOException, using the last-error string for the detail 89 * string. If the last-error string is NULL, use the given default 90 * detail string. 91 */ 92 JNIEXPORT void JNICALL 93 JNU_ThrowIOExceptionWithLastError(JNIEnv *env, const char *defaultDetail); 94 95 /* Convert between Java strings and i18n C strings */ 96 JNIEXPORT const char * 97 GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy); 98 99 JNIEXPORT jstring JNICALL 100 JNU_NewStringPlatform(JNIEnv *env, const char *str); 101 102 JNIEXPORT const char * JNICALL 103 JNU_GetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy); 104 105 JNIEXPORT void JNICALL 106 JNU_ReleaseStringPlatformChars(JNIEnv *env, jstring jstr, const char *str); 107 108 /* Class constants */ 109 JNIEXPORT jclass JNICALL 110 JNU_ClassString(JNIEnv *env); 111 112 /* Copy count number of arguments from src to dst. Array bounds 113 * and ArrayStoreException are checked. 114 */ 115 JNIEXPORT jint JNICALL |