]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PipedOutputStream.java (flush): Declare as throwing IOException.
authorTom Tromey <tromey@redhat.com>
Tue, 4 Feb 2003 21:07:15 +0000 (21:07 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 4 Feb 2003 21:07:15 +0000 (21:07 +0000)
* java/io/PipedOutputStream.java (flush): Declare as throwing
IOException.
(close): Likewise.
* java/io/PipedWriter.java (close): Declare as throwing
IOException.
* java/io/StringWriter.java (close): Declare as throwing
IOException.

From-SVN: r62401

libjava/ChangeLog
libjava/java/io/PipedOutputStream.java
libjava/java/io/PipedWriter.java
libjava/java/io/StringWriter.java

index 8a5597a98334add937b2398ec8a9cb24a4733e45..173c85eddc059942fa25ff3830d07baf35a3736e 100644 (file)
@@ -1,3 +1,13 @@
+2003-02-04  Tom Tromey  <tromey@redhat.com>
+
+       * java/io/PipedOutputStream.java (flush): Declare as throwing
+       IOException.
+       (close): Likewise.
+       * java/io/PipedWriter.java (close): Declare as throwing
+       IOException.
+       * java/io/StringWriter.java (close): Declare as throwing
+       IOException.
+
 2003-02-03  Ranjit Mathew <rmathew@hotmail.com>
 
        * java/lang/natRuntime.cc (java::lang::Runtime::_load)): Take care
index 68b656b1925d59fb1765d6841ce5967e7bff7f8d..09d8db707e9e6ddf8aef9c21790eb35c61453dea 100644 (file)
@@ -1,5 +1,5 @@
 /* PipedOutputStream.java -- Write portion of piped streams.
-   Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1998, 2000, 2001, 2003 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -154,7 +154,7 @@ public class PipedOutputStream extends OutputStream
     *           had read all available data. Thats not the case - this method
     *           appears to be a no-op?
     */
-  public void flush()
+  public void flush() throws IOException
   {
   }
   
@@ -165,7 +165,7 @@ public class PipedOutputStream extends OutputStream
     *
     * @exception IOException If an error occurs
     */
-  public void close()
+  public void close() throws IOException
   {
     // A close call on an unconnected PipedOutputStream has no effect.
     if (sink != null)
index 0ab3c0b8e1218a4a893c414f1630faefb75b9db3..e1a211560759ffae6d7ce3d3afc97c97bea1e486 100644 (file)
@@ -1,5 +1,5 @@
 /* PipedWriter.java -- Write portion of piped character streams.
-   Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1998, 2000, 2001, 2003 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -166,7 +166,7 @@ public class PipedWriter extends Writer
     *
     * @exception IOException If an error occurs
     */
-  public void close()
+  public void close() throws IOException
   {
     // A close call on an unconnected PipedWriter has no effect.
     if (sink != null)
index edf857156128b0dd4f41a0f8193a1e51d127c871..660ef166a2e59ecafaa8f5cfc950ecae7b18d855 100644 (file)
@@ -1,5 +1,5 @@
 /* StringWriter.java -- Writes bytes to a StringBuffer
-   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -61,7 +61,7 @@ public class StringWriter extends Writer
    * This method closes the stream.  The contents of the internal buffer
    * can still be retrieved, but future writes are not guaranteed to work.
    */
-  public void close ()
+  public void close () throws IOException
   {
     // JCL says this does nothing.  This seems to violate the Writer
     // contract, in that other methods should still throw an