public void shutdownOutput () throws IOException

Disables the output stream for this socket. For a TCP socket, any previously written data will be sent followed by TCP's normal connection termination sequence. If you write to a socket output stream after invoking shutdownOutput() on the socket, the stream will throw an IOException.

Exceptions:
IOException    if an I/O error occurs when shutting down this socket.

See also:
java.net.Socket.shutdownInput(), java.net.Socket.close(), java.net.Socket.setSoLinger(boolean, int), isOutputShutdown

Since:  1.3