diff options
author | Tom Tromey <tromey@redhat.com> | 2003-02-04 21:07:15 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2003-02-04 21:07:15 +0000 |
commit | a1db344663d6422ee798d1be216f209d227f1a34 (patch) | |
tree | 72d5928714e5c9a82757621321b77e127a1e4e4a /libjava/java/io | |
parent | 8d0a564bba54f790c0306edd35ed0e1c98e904ce (diff) | |
download | gcc-a1db344663d6422ee798d1be216f209d227f1a34.zip gcc-a1db344663d6422ee798d1be216f209d227f1a34.tar.gz gcc-a1db344663d6422ee798d1be216f209d227f1a34.tar.bz2 |
PipedOutputStream.java (flush): Declare as throwing IOException.
* 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
Diffstat (limited to 'libjava/java/io')
-rw-r--r-- | libjava/java/io/PipedOutputStream.java | 6 | ||||
-rw-r--r-- | libjava/java/io/PipedWriter.java | 4 | ||||
-rw-r--r-- | libjava/java/io/StringWriter.java | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/libjava/java/io/PipedOutputStream.java b/libjava/java/io/PipedOutputStream.java index 68b656b..09d8db7 100644 --- a/libjava/java/io/PipedOutputStream.java +++ b/libjava/java/io/PipedOutputStream.java @@ -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) diff --git a/libjava/java/io/PipedWriter.java b/libjava/java/io/PipedWriter.java index 0ab3c0b..e1a2115 100644 --- a/libjava/java/io/PipedWriter.java +++ b/libjava/java/io/PipedWriter.java @@ -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) diff --git a/libjava/java/io/StringWriter.java b/libjava/java/io/StringWriter.java index edf8571..660ef16 100644 --- a/libjava/java/io/StringWriter.java +++ b/libjava/java/io/StringWriter.java @@ -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 |