/[classpath]/classpath/java/io/FileOutputStream.java
ViewVC logotype

Diff of /classpath/java/io/FileOutputStream.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by mark, Sun Oct 27 13:07:17 2002 UTC revision 1.13 by mark, Fri Nov 29 18:41:04 2002 UTC
# Line 97  private int native_fd = -1; Line 97  private int native_fd = -1;
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  }  }
# Line 121  FileOutputStream(String name) throws Sec Line 121  FileOutputStream(String name) throws Sec
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  }  }
# Line 144  FileOutputStream(File file) throws Secur Line 144  FileOutputStream(File file) throws Secur
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)
# Line 304  writeInternal(int native_fd, byte[] buf, Line 305  writeInternal(int native_fd, byte[] buf,
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    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26