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
IOExceptionpublic static boolean isAvailable(int type)
throws IOException
IOExceptionpublic static void open()
throws IOException
IOExceptionpublic static void open(int type)
throws IOException
IOExceptionpublic static void close()
throws IOException
IOExceptionprotected void finalize()
finalize in class java.lang.Objectpublic static java.lang.String getHostAddress(java.lang.String host)
throws UnknownHostException
UnknownHostExceptionpublic static java.lang.String getHostName(java.lang.String host)
throws UnknownHostException
UnknownHostExceptionpublic static java.lang.String getLocalHost()
throws UnknownHostException
UnknownHostExceptionpublic static java.lang.String getLocalHostName()
throws UnknownHostException
UnknownHostExceptionpublic static boolean isInternetAccessible()