src/java.base/share/classes/java/io/FileInputStream.java
Print this page
rev 10519 : 8054720: Modifications of I/O methods for instrumentation purposes
Summary: Wrap some native methods in Java methods.
Reviewed-by: TBD
*** 182,192 ****
/**
* Opens the specified file for reading.
* @param name the name of the file
*/
! private native void open(String name) throws FileNotFoundException;
/**
* Reads a byte of data from this input stream. This method blocks
* if no input is yet available.
*
--- 182,201 ----
/**
* Opens the specified file for reading.
* @param name the name of the file
*/
! private native void open0(String name) throws FileNotFoundException;
!
! // wrap native call to allow instrumentation
! /**
! * Opens the specified file for reading.
! * @param name the name of the file
! */
! private void open(String name) throws FileNotFoundException {
! open0(name);
! }
/**
* Reads a byte of data from this input stream. This method blocks
* if no input is yet available.
*