jdk/src/share/classes/java/net/Socket.java
changeset 10421 2ee16a0f6df5
parent 9775 1b128726e887
child 10437 dfca69ed7f87
--- a/jdk/src/share/classes/java/net/Socket.java	Wed Aug 31 09:22:50 2011 +0800
+++ b/jdk/src/share/classes/java/net/Socket.java	Thu Sep 01 06:45:00 2011 +0100
@@ -28,7 +28,6 @@
 import java.io.InputStream;
 import java.io.OutputStream;
 import java.io.IOException;
-import java.io.InterruptedIOException;
 import java.nio.channels.SocketChannel;
 import java.security.AccessController;
 import java.security.PrivilegedExceptionAction;
@@ -1436,8 +1435,9 @@
      * Any data sent to the input stream side of the socket is acknowledged
      * and then silently discarded.
      * <p>
-     * If you read from a socket input stream after invoking
-     * shutdownInput() on the socket, the stream will return EOF.
+     * If you read from a socket input stream after invoking this method on the
+     * socket, the stream's {@code available} method will return 0, and its
+     * {@code read} methods will return {@code -1} (end of stream).
      *
      * @exception IOException if an I/O error occurs when shutting down this
      * socket.