Java Socket Check isSocketClosed(SocketException e)

Here you can find the source of isSocketClosed(SocketException e)

Description

is Socket Closed

License

Open Source License

Declaration

public static boolean isSocketClosed(SocketException e) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.net.SocketException;

public class Main {
    public static boolean isSocketClosed(SocketException e) {
        return e.getMessage().equals("Socket closed");
    }//from  w  w  w.  j av  a2s.co m
}

Related

  1. isConnected(Socket socket)
  2. isSocketReadyToWrite(Socket socket)
  3. isSocketTimeoutException(final InterruptedIOException e)