97 |
* @param name The name of the file this stream should write to |
* @param name The name of the file this stream should write to |
98 |
* |
* |
99 |
* @exception SecurityException If write access to the file is not allowed |
* @exception SecurityException If write access to the file is not allowed |
100 |
* @exception IOException If a non-security error occurs |
* @exception FileNotFoundException If a non-security error occurs |
101 |
*/ |
*/ |
102 |
public |
public |
103 |
FileOutputStream(String name) throws SecurityException, IOException |
FileOutputStream(String name) throws SecurityException, FileNotFoundException |
104 |
{ |
{ |
105 |
this(name, false); |
this(name, false); |
106 |
} |
} |
121 |
* @param file The <code>File</code> object this stream should write to |
* @param file The <code>File</code> object this stream should write to |
122 |
* |
* |
123 |
* @exception SecurityException If write access to the file is not allowed |
* @exception SecurityException If write access to the file is not allowed |
124 |
* @exception IOException If a non-security error occurs |
* @exception FileNotFoundException If a non-security error occurs |
125 |
*/ |
*/ |
126 |
public |
public |
127 |
FileOutputStream(File file) throws SecurityException, IOException |
FileOutputStream(File file) throws SecurityException, FileNotFoundException |
128 |
{ |
{ |
129 |
this(file.getPath(), false); |
this(file.getPath(), false); |
130 |
} |
} |
144 |
* thrown if writing is not allowed. |
* thrown if writing is not allowed. |
145 |
* |
* |
146 |
* @param name The name of the file this stream should write to |
* @param name The name of the file this stream should write to |
147 |
* @param append <code>true</code> to append bytes to the end of the file, or <code>false</code> to write bytes to the beginning |
* @param append <code>true</code> to append bytes to the end of the file, |
148 |
|
* or <code>false</code> to write bytes to the beginning |
149 |
* |
* |
150 |
* @exception SecurityException If write access to the file is not allowed |
* @exception SecurityException If write access to the file is not allowed |
151 |
* @exception IOException If a non-security error occurs |
* @exception FileNotFoundException If a non-security error occurs |
152 |
*/ |
*/ |
153 |
public |
public |
154 |
FileOutputStream(String name, boolean append) throws SecurityException, |
FileOutputStream(String name, boolean append) throws SecurityException, |
155 |
IOException |
FileNotFoundException |
156 |
{ |
{ |
157 |
SecurityManager sm = System.getSecurityManager(); |
SecurityManager sm = System.getSecurityManager(); |
158 |
if (sm != null) |
if (sm != null) |
305 |
* beginning. |
* beginning. |
306 |
* |
* |
307 |
* @param name The name of the file to open |
* @param name The name of the file to open |
308 |
* @param append <code>true</code> to write starting at the end of the file, <code>false</code> to start writing at the beginning |
* @param append <code>true</code> to write starting at the end of the file, |
309 |
|
* <code>false</code> to start writing at the beginning |
310 |
* |
* |
311 |
* @return A native file descriptor for this file |
* @return A native file descriptor for this file |
312 |
* |
* |
313 |
* @exception IOException If an error occurs |
* @exception FileNotFoundException If an error occurs |
314 |
*/ |
*/ |
315 |
private synchronized native int |
private synchronized native int |
316 |
open(String name, boolean append) throws IOException; |
open(String name, boolean append) throws FileNotFoundException; |
317 |
|
|
318 |
/*************************************************************************/ |
/*************************************************************************/ |
319 |
|
|