summaryrefslogtreecommitdiff
path: root/gnu/java/net/PlainSocketImpl.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2005-01-12 08:13:45 +0000
committerMichael Koch <konqueror@gmx.de>2005-01-12 08:13:45 +0000
commit4f3c7ba555c9440667c7738da9ed43706eb40a4a (patch)
treefceeb05ad4e9893e6338d029317e54e91ad1fbea /gnu/java/net/PlainSocketImpl.java
parent040788646e26aa82f46a89cb4e516a93f7a6a9d3 (diff)
downloadclasspath-4f3c7ba555c9440667c7738da9ed43706eb40a4a.tar.gz
2005-01-12 Michael Koch <konqueror@gmx.de>
* gnu/java/net/PlainSocketImpl.java (shutdownInput): Made native. Throws IOException. Added Javadoc. (shutdownOutput): Likewise. * include/gnu_java_net_PlainSocketImpl.h: Regenerated. * native/jni/java-net/gnu_java_net_PlainSocketImpl.c (Java_gnu_java_net_PlainSocketImpl_shutdownInput): New method. (Java_gnu_java_net_PlainSocketImpl_shutdownOutput): Likewise. * native/jni/java-net/javanet.c (_javanet_shutdownInput): Likewise. (_javanet_shutdownOutput): Likewise. * native/jni/java-net/javanet.h (_javanet_shutdownInput): Likewise. (_javanet_shutdownOutput): Likewise.
Diffstat (limited to 'gnu/java/net/PlainSocketImpl.java')
-rw-r--r--gnu/java/net/PlainSocketImpl.java22
1 files changed, 14 insertions, 8 deletions
diff --git a/gnu/java/net/PlainSocketImpl.java b/gnu/java/net/PlainSocketImpl.java
index 93f43b86d..2b2bb1e59 100644
--- a/gnu/java/net/PlainSocketImpl.java
+++ b/gnu/java/net/PlainSocketImpl.java
@@ -177,15 +177,21 @@ public final class PlainSocketImpl extends SocketImpl
*/
public native Object getOption(int optID) throws SocketException;
- public void shutdownInput()
- {
- throw new InternalError ("PlainSocketImpl::shutdownInput not implemented");
- }
+ /**
+ * 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;
- public void shutdownOutput()
- {
- throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented");
- }
+ /**
+ * 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;
/**
* Creates a new socket that is not bound to any local address/port and