summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/net
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-17 18:59:55 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-17 18:59:55 +0000
commita2822f7ea08361b8d35e53c9a49fa032d1836fee (patch)
tree18e200fddb40311b2e5761f514cf25d33edb464f /libjava/gnu/java/net
parentafad58c84452d5a688987763b4f25922ed5aace9 (diff)
downloadppe42-gcc-a2822f7ea08361b8d35e53c9a49fa032d1836fee.tar.gz
ppe42-gcc-a2822f7ea08361b8d35e53c9a49fa032d1836fee.zip
2005-02-17 Michael Koch <konqueror@gmx.de>
* gnu/java/net/PlainSocketImpl.java (shutdownInput): Added javadoc. (shutdownOutput): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95180 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java/net')
-rw-r--r--libjava/gnu/java/net/PlainSocketImpl.java14
1 files changed, 13 insertions, 1 deletions
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 <code>IOException</code> 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 <code>IOException</code> will be thrown.
+ *
+ * @throws IOException if an error occurs
+ */
public native void shutdownOutput() throws IOException;
/**
OpenPOWER on IntegriCloud