public class ConnectionManager4D
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CELLULAR |
static int |
CRADLE |
static int |
GPRS |
static int |
WIFI |
Modifier and Type | Method and Description |
---|---|
static void |
close() |
protected void |
finalize() |
static java.lang.String |
getHostAddress(java.lang.String host) |
static java.lang.String |
getHostName(java.lang.String host) |
static java.lang.String |
getLocalHost() |
static java.lang.String |
getLocalHostName() |
static boolean |
isAvailable(int type) |
static boolean |
isInternetAccessible() |
static void |
open() |
static void |
open(int type) |
static void |
setDefaultConfiguration(int type,
java.lang.String cfg) |
public static final int CRADLE
public static final int WIFI
public static final int CELLULAR
public static final int GPRS
public static void setDefaultConfiguration(int type, java.lang.String cfg) throws IOException
IOException
public static boolean isAvailable(int type) throws IOException
IOException
public static void open() throws IOException
IOException
public static void open(int type) throws IOException
IOException
public static void close() throws IOException
IOException
protected void finalize()
finalize
in class java.lang.Object
public static java.lang.String getHostAddress(java.lang.String host) throws UnknownHostException
UnknownHostException
public static java.lang.String getHostName(java.lang.String host) throws UnknownHostException
UnknownHostException
public static java.lang.String getLocalHost() throws UnknownHostException
UnknownHostException
public static java.lang.String getLocalHostName() throws UnknownHostException
UnknownHostException
public static boolean isInternetAccessible()