< prev index next >

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

Print this page

        

*** 37,44 **** --- 37,65 ---- /********************************************************************* * Platform specific implementation of input stream native methods */ JNIEXPORT void JNICALL + Java_java_io_FileInputStream_open0(JNIEnv *env, jobject this, jstring path, jboolean direct) { + if (direct) { + JNU_ThrowIOException (env, "DirectIO is not available on Windows platform!"); + } + fileOpen(env, this, path, fis_fd, O_RDONLY); + } + + JNIEXPORT void JNICALL Java_java_io_FileInputStream_close0(JNIEnv *env, jobject this) { handleClose(env, this, fis_fd); } + + JNIEXPORT jint JNICALL + Java_java_io_FileInputStream_readBytesD(JNIEnv *env, jobject this, + jbyteArray bytes, jint off, jint len) { + JNU_ThrowIOException (env, "DirectIO is not available on Windows platform!"); + return 0; + } + + JNIEXPORT jint JNICALL + Java_java_io_FileInputStream_getPageSize0(JNIEnv *env, jobject this) { + JNU_ThrowIOException (env, "DirectIO is not available on Windows platform!"); + return 0; + }
< prev index next >