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,11 +254,20 @@
     /**
      * 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)
+    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.
      *