src/share/classes/java/io/FileOutputStream.java
Print this page
rev 10457 : 8054720: Modifications of I/O methods for instrumentation purposes
Summary: Wrap some native methods in Java methods and change native method names to a consistent form.
Reviewed-by: TBD
*** 254,264 ****
/**
* Opens a file, with the specified name, for overwriting or appending.
* @param name name of file to be opened
* @param append whether the file is to be opened in append mode
*/
! private native void open(String name, boolean append)
throws FileNotFoundException;
/**
* Writes the specified byte to this file output stream.
*
--- 254,273 ----
/**
* Opens a file, with the specified name, for overwriting or appending.
* @param name name of file to be opened
* @param append whether the file is to be opened in append mode
*/
! private void open(String name, boolean append) throws FileNotFoundException {
! open0(name, append);
! }
!
! /**
! * Opens a file, with the specified name, for overwriting or appending.
! * @param name name of file to be opened
! * @param append whether the file is to be opened in append mode
! */
! private native void open0(String name, boolean append)
throws FileNotFoundException;
/**
* Writes the specified byte to this file output stream.
*