+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
/* 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.
* 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
{
}
*
* @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)
/* 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.
*
* @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)
/* 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.
* 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