equal
deleted
inserted
replaced
185 } |
185 } |
186 } |
186 } |
187 |
187 |
188 /* |
188 /* |
189 * Class: com_nokia_mj_impl_fileutils_FileStreamHandler |
189 * Class: com_nokia_mj_impl_fileutils_FileStreamHandler |
|
190 * Method: _flush |
|
191 * Signature: (I)V |
|
192 */ |
|
193 JNIEXPORT void JNICALL Java_com_nokia_mj_impl_fileutils_FileStreamHandler__1flush |
|
194 (JNIEnv *aJni, jobject, jint aHandle) |
|
195 { |
|
196 try |
|
197 { |
|
198 NativeFileIOHandler* handler = |
|
199 reinterpret_cast<NativeFileIOHandler*>(aHandle); |
|
200 handler->flush(); |
|
201 } |
|
202 catch (int error) |
|
203 { |
|
204 WLOG1(EJavaFile, "FileStreamHandler: JNI: flush error : Error: %d", |
|
205 error); |
|
206 JniUtils::throwNewException(aJni, "java/io/IOException", |
|
207 "Flush failed."); |
|
208 } |
|
209 catch (...) |
|
210 { |
|
211 ELOG(EJavaFile, "FileStreamHandler: JNI: flush: Unknown error."); |
|
212 JniUtils::throwNewException(aJni, "java/io/IOException", |
|
213 "Flush failed."); |
|
214 } |
|
215 } |
|
216 |
|
217 /* |
|
218 * Class: com_nokia_mj_impl_fileutils_FileStreamHandler |
190 * Method: _closeFileStream |
219 * Method: _closeFileStream |
191 * Signature: (I)V |
220 * Signature: (I)V |
192 */ |
221 */ |
193 JNIEXPORT void JNICALL Java_com_nokia_mj_impl_fileutils_FileStreamHandler__1closeFileStream |
222 JNIEXPORT void JNICALL Java_com_nokia_mj_impl_fileutils_FileStreamHandler__1closeFileStream |
194 (JNIEnv *, jobject, jint aHandle) |
223 (JNIEnv *, jobject, jint aHandle) |