public class NetworkUtils extends Object
Constructor and Description |
---|
NetworkUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasInternetConnection() |
static void |
testNetworkConnection()
Taken from
ImageJUpdater
Check whether we can connect to the Internet. |
public static void testNetworkConnection() throws IOException
ImageJUpdater
Check whether we can connect to the Internet. If we cannot connect, we will
not be able to update.IOException
- if anything goes wrong.public static boolean hasInternetConnection()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.