Once shutdown for writing then further attempts to write to the channel will throw {@link ClosedChannelException}. If the output side of the connection is already shutdown then invoking this method has no effect. @return The channel @throws NotYetConnectedException If this channel is not yet connected @throws ClosedChannelException If this channel is closed @throws IOException If some other I/O error occurs @since 1.7
This call indicates that no more data will be sent on this endpoint that that the remote end should read an EOF once all previously sent data has been consumed. Shutdown may be done either at the TCP/IP level, as a protocol exchange (Eg TLS close handshake) or both.
If the endpoint has {@link #isInputShutdown()} true, then this call has the same effectas {@link #close()}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|