1 |
/* FileWriter.java -- Convenience class for writing to files. |
/* FileWriter.java -- Convenience class for writing to files. |
2 |
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2001, 2003 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
76 |
} |
} |
77 |
|
|
78 |
/*************************************************************************/ |
/*************************************************************************/ |
79 |
|
|
80 |
|
/** |
81 |
|
* This method initializes a new <code>FileWriter</code> object to write |
82 |
|
* to the specified <code>File</code> object. |
83 |
|
* |
84 |
|
* @param file The <code>File</code> object to write to. |
85 |
|
* @param append <code>true</code> to start adding data at the end of the |
86 |
|
* file, <code>false</code> otherwise. |
87 |
|
* |
88 |
|
* @param SecurityException If writing to this file is forbidden by the |
89 |
|
* <code>SecurityManager</code>. |
90 |
|
* @param IOException If any other error occurs |
91 |
|
*/ |
92 |
|
public FileWriter(File file, boolean append) throws IOException |
93 |
|
{ |
94 |
|
super(new FileOutputStream(file, append)); |
95 |
|
} |
96 |
|
|
97 |
|
/*************************************************************************/ |
98 |
|
|
99 |
/** |
/** |
100 |
* This method initializes a new <code>FileWriter</code> object to write |
* This method initializes a new <code>FileWriter</code> object to write |