equal
deleted
inserted
replaced
254 /** |
254 /** |
255 * Opens a file, with the specified name, for overwriting or appending. |
255 * Opens a file, with the specified name, for overwriting or appending. |
256 * @param name name of file to be opened |
256 * @param name name of file to be opened |
257 * @param append whether the file is to be opened in append mode |
257 * @param append whether the file is to be opened in append mode |
258 */ |
258 */ |
259 private native void open(String name, boolean append) |
259 private native void open0(String name, boolean append) |
260 throws FileNotFoundException; |
260 throws FileNotFoundException; |
|
261 |
|
262 // wrap native call to allow instrumentation |
|
263 /** |
|
264 * Opens a file, with the specified name, for overwriting or appending. |
|
265 * @param name name of file to be opened |
|
266 * @param append whether the file is to be opened in append mode |
|
267 */ |
|
268 private void open(String name, boolean append) |
|
269 throws FileNotFoundException { |
|
270 open0(name, append); |
|
271 } |
261 |
272 |
262 /** |
273 /** |
263 * Writes the specified byte to this file output stream. |
274 * Writes the specified byte to this file output stream. |
264 * |
275 * |
265 * @param b the byte to be written. |
276 * @param b the byte to be written. |