class CheckNetworkConnection
extends java.lang.Object
Constructor and Description |
---|
CheckNetworkConnection() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkConnection()
Check the Network
|
boolean |
checkConnection(java.net.URL url)
Checks if a internet connection to a specific Server can be established
|
boolean |
checkConnection(java.net.URL url,
int timeout,
boolean showWaitingDialog)
Checks if a internet connection to a specific Server can be established
|
static java.lang.String[] |
getUrls() |
public boolean checkConnection()
public boolean checkConnection(java.net.URL url)
url
- check this Serverpublic boolean checkConnection(java.net.URL url, int timeout, boolean showWaitingDialog)
url
- check this Servertimeout
- the timeout for the check in milliseconds.showWaitingDialog
- true
if a waiting dialog should be shown, false
otherwise.true
, if a connection can be establishedpublic static java.lang.String[] getUrls()
TV-Browser 3.4.1.0, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)