From 51615fd6cd97605e975ead59ca7780bc1bb92805 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Thu, 17 Feb 2005 18:59:55 +0000 Subject: [PATCH] 2005-02-17 Michael Koch * gnu/java/net/PlainSocketImpl.java (shutdownInput): Added javadoc. (shutdownOutput): Likewise. From-SVN: r95180 --- libjava/ChangeLog | 6 ++++++ libjava/gnu/java/net/PlainSocketImpl.java | 14 +++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 44defcdbc51..a271fd1ae8a 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2005-02-17 Michael Koch + + * gnu/java/net/PlainSocketImpl.java + (shutdownInput): Added javadoc. + (shutdownOutput): Likewise. + 2005-02-17 Michael Koch * javax/print/attribute/standard/Chromaticity.java, diff --git a/libjava/gnu/java/net/PlainSocketImpl.java b/libjava/gnu/java/net/PlainSocketImpl.java index 4301a485cf3..f7e6cb89052 100644 --- a/libjava/gnu/java/net/PlainSocketImpl.java +++ b/libjava/gnu/java/net/PlainSocketImpl.java @@ -1,5 +1,5 @@ /* PlainSocketImpl.java -- Default socket implementation - Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -200,8 +200,20 @@ public final class PlainSocketImpl extends SocketImpl */ public native Object getOption(int optID) throws SocketException; + /** + * Flushes the input stream and closes it. If you read from the input stream + * after calling this method a IOException will be thrown. + * + * @throws IOException if an error occurs + */ public native void shutdownInput() throws IOException; + /** + * Flushes the output stream and closes it. If you write to the output stream + * after calling this method a IOException will be thrown. + * + * @throws IOException if an error occurs + */ public native void shutdownOutput() throws IOException; /** -- 2.30.2