diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-19 12:13:41 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-19 12:13:41 +0000 |
commit | e54f2ea822f074dc11ba851d25f566d92163ba26 (patch) | |
tree | 0dcf614afa94acb02e8af772cc7a0aae73972cc1 /libjava/java/io/FileWriter.java | |
parent | 968fd1577ccbe56abbbd5650f527f1dfe73b7fc4 (diff) | |
download | ppe42-gcc-e54f2ea822f074dc11ba851d25f566d92163ba26.tar.gz ppe42-gcc-e54f2ea822f074dc11ba851d25f566d92163ba26.zip |
2003-03-19 Michael Koch <konqueror@gmx.de>
* java/io/FileOutputStream.java
(FileOutputStream): New constructor, merged from classpath.
* java/io/FileWriter.java
(FileWriter): New constructor, merged from classpath.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64574 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/io/FileWriter.java')
-rw-r--r-- | libjava/java/io/FileWriter.java | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/libjava/java/io/FileWriter.java b/libjava/java/io/FileWriter.java index 5217f9ecc33..b7f8579f22f 100644 --- a/libjava/java/io/FileWriter.java +++ b/libjava/java/io/FileWriter.java @@ -1,5 +1,5 @@ /* FileWriter.java -- Convenience class for writing to files. - Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2001, 2003 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -79,6 +79,25 @@ public class FileWriter extends OutputStreamWriter /** * This method initializes a new <code>FileWriter</code> object to write + * to the specified <code>File</code> object. + * + * @param file The <code>File</code> object to write to. + * @param append <code>true</code> to start adding data at the end of the + * file, <code>false</code> otherwise. + * + * @param SecurityException If writing to this file is forbidden by the + * <code>SecurityManager</code>. + * @param IOException If any other error occurs + */ + public FileWriter(File file, boolean append) throws IOException + { + super(new FileOutputStream(file, append)); + } + + /*************************************************************************/ + + /** + * This method initializes a new <code>FileWriter</code> object to write * to the specified <code>FileDescriptor</code> object. * * @param fd The <code>FileDescriptor</code> object to write to |