java.net.Socket.isInputShutdown is a method that returns a boolean value indicating whether the input stream on this socket has been shutdown.
Example:
Socket socket = new Socket("localhost", 8080);
// Check if input is shutdown if(socket.isInputShutdown()) { System.out.println("Input stream has been shutdown."); } else { System.out.println("Input stream is still active."); }
This example creates a socket connection to localhost on port 8080 and checks if the input stream has been shutdown.
The java.net.Socket package library provides classes for creating network sockets, including client sockets, server sockets, and multi-cast sockets.
Java Socket.isInputShutdown - 22 examples found. These are the top rated real world Java examples of java.net.Socket.isInputShutdown extracted from open source projects. You can rate examples to help us improve the quality of examples.