aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/io/FileWriter.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-03-18 06:00:25 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-03-18 06:00:25 +0000
commitf4f5d1d62161cc99ecfc68495d501342aa1e61dc (patch)
tree9f83602fa5fd87c7741475487fab1b0b3a3e47ab /libjava/java/io/FileWriter.java
parent61f1ed592c606d1d2ae272292ad4dbe37d71d78b (diff)
downloadgcc-f4f5d1d62161cc99ecfc68495d501342aa1e61dc.zip
gcc-f4f5d1d62161cc99ecfc68495d501342aa1e61dc.tar.gz
gcc-f4f5d1d62161cc99ecfc68495d501342aa1e61dc.tar.bz2
BufferedReader.java, [...]: Merged from classpath.
2003-03-18 Michael Koch <konqueror@gmx.de> * java/io/BufferedReader.java, java/io/BufferedWriter.java, java/io/ByteArrayOutputStream.java, java/io/FileFilter.java, java/io/FilePermission.java, java/io/FileReader.java, java/io/FileWriter.java, java/io/FilenameFilter.java, java/io/FilterInputStream.java, java/io/FilterOutputStream.java, java/io/FilterReader.java, java/io/FilterWriter.java, java/io/ObjectInput.java, java/io/ObjectInputValidation.java, java/io/ObjectOutput.java, java/io/ObjectStreamField.java, java/io/PipedInputStream.java, java/io/PipedReader.java, java/io/PrintWriter.java, java/io/PushbackReader.java, java/io/Reader.java, java/io/SerializablePermission.java, java/io/StringReader.java, java/io/Writer.java: Merged from classpath. From-SVN: r64525
Diffstat (limited to 'libjava/java/io/FileWriter.java')
-rw-r--r--libjava/java/io/FileWriter.java154
1 files changed, 76 insertions, 78 deletions
diff --git a/libjava/java/io/FileWriter.java b/libjava/java/io/FileWriter.java
index 265f31c..5217f9e 100644
--- a/libjava/java/io/FileWriter.java
+++ b/libjava/java/io/FileWriter.java
@@ -54,84 +54,82 @@ package java.io;
public class FileWriter extends OutputStreamWriter
{
-/*************************************************************************/
-
-/*
- * Constructors
- */
-
-/**
- * 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 SecurityException If writing to this file is forbidden by the
- * <code>SecurityManager</code>.
- * @param IOException If any other error occurs
- */
-public
-FileWriter(File file) throws SecurityException, IOException
-{
- super(new FileOutputStream(file));
-}
-
-/*************************************************************************/
-
-/**
- * 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
- *
- * @param SecurityException If writing to this file is forbidden by the
- * <code>SecurityManager</code>.
- */
-public
-FileWriter(FileDescriptor fd) throws SecurityException
-{
- super(new FileOutputStream(fd));
-}
-
-/*************************************************************************/
-
-/**
- * This method intializes a new <code>FileWriter</code> object to write to the
- * specified named file.
- *
- * @param name The name of the file to write to
- *
- * @param SecurityException If writing to this file is forbidden by the
- * <code>SecurityManager</code>.
- * @param IOException If any other error occurs
- */
-public
-FileWriter(String name) throws IOException
-{
- super(new FileOutputStream(name));
-}
-
-/*************************************************************************/
-
-/**
- * This method intializes a new <code>FileWriter</code> object to write to the
- * specified named file. This form of the constructor allows the caller
- * to determin whether data should be written starting at the beginning or
- * the end of the file.
- *
- * @param name The name of the file 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(String name, boolean append) throws IOException
-{
- super(new FileOutputStream(name, append));
-}
+ /*************************************************************************/
+
+ /*
+ * Constructors
+ */
+
+ /**
+ * 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 SecurityException If writing to this file is forbidden by the
+ * <code>SecurityManager</code>.
+ * @param IOException If any other error occurs
+ */
+ public FileWriter(File file) throws SecurityException, IOException
+ {
+ super(new FileOutputStream(file));
+ }
+
+ /*************************************************************************/
+
+ /**
+ * 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
+ *
+ * @param SecurityException If writing to this file is forbidden by the
+ * <code>SecurityManager</code>.
+ */
+ public FileWriter(FileDescriptor fd) throws SecurityException
+ {
+ super(new FileOutputStream(fd));
+ }
+
+ /*************************************************************************/
+
+ /**
+ * This method intializes a new <code>FileWriter</code> object to
+ * write to the
+ * specified named file.
+ *
+ * @param name The name of the file to write to
+ *
+ * @param SecurityException If writing to this file is forbidden by the
+ * <code>SecurityManager</code>.
+ * @param IOException If any other error occurs
+ */
+ public FileWriter(String name) throws IOException
+ {
+ super(new FileOutputStream(name));
+ }
+
+ /*************************************************************************/
+
+ /**
+ * This method intializes a new <code>FileWriter</code> object to
+ * write to the
+ * specified named file. This form of the constructor allows the caller
+ * to determin whether data should be written starting at the beginning or
+ * the end of the file.
+ *
+ * @param name The name of the file 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(String name, boolean append) throws IOException
+ {
+ super(new FileOutputStream(name, append));
+ }
} // class FileWriter