< prev index next >

src/java.base/windows/native/libjava/FileOutputStream_md.c

Print this page

        

*** 53,63 **** * Output stream */ JNIEXPORT void JNICALL Java_java_io_FileOutputStream_open0(JNIEnv *env, jobject this, ! jstring path, jboolean append) { fileOpen(env, this, path, fos_fd, O_WRONLY | O_CREAT | (append ? O_APPEND : O_TRUNC)); } JNIEXPORT void JNICALL --- 53,66 ---- * Output stream */ JNIEXPORT void JNICALL Java_java_io_FileOutputStream_open0(JNIEnv *env, jobject this, ! jstring path, jboolean append, jboolean direct) { ! if (direct) { ! JNU_ThrowIOException (env, "DirectIO is not available on Windows platform!"); ! } fileOpen(env, this, path, fos_fd, O_WRONLY | O_CREAT | (append ? O_APPEND : O_TRUNC)); } JNIEXPORT void JNICALL
*** 71,78 **** --- 74,93 ---- { writeBytes(env, this, bytes, off, len, append, fos_fd); } JNIEXPORT void JNICALL + Java_java_io_FileOutputStream_writeBytesD(JNIEnv *env, + jobject this, jbyteArray bytes, jint off, jint len, jboolean append) { + JNU_ThrowIOException (env, "DirectIO is not available on Windows platform!"); + } + + JNIEXPORT jint JNICALL + Java_java_io_FileOutputStream_getPageSize0(JNIEnv *env, jobject this) { + JNU_ThrowIOException (env, "DirectIO is not available on Windows platform!"); + return 0; + } + + JNIEXPORT void JNICALL Java_java_io_FileOutputStream_close0(JNIEnv *env, jobject this) { handleClose(env, this, fos_fd); }
< prev index next >