public class NetworkUtils
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | NetworkUtils.NetRestartNotification | 
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | ALL_CONNECTIONS | 
| static java.lang.String | TAG | 
| Constructor and Description | 
|---|
| NetworkUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static byte[] | getByteAddress(java.lang.String s)Given an IP address, return the appropriate byte array. | 
| static java.lang.String | getIP() | 
| static boolean | isMulticastAddress(java.lang.String address)Determine if the address supplied is a multicast address | 
| static boolean | isValid(java.lang.String address)Return true if the network address passed in is considered valid | 
| static void | registerNetRestartNotification(java.lang.String key,
                              NetworkUtils.NetRestartNotification callback) | 
public static final java.lang.String TAG
public static final java.lang.String ALL_CONNECTIONS
public static java.lang.String getIP()
public static boolean isMulticastAddress(java.lang.String address)
public static byte[] getByteAddress(java.lang.String s)
public static void registerNetRestartNotification(java.lang.String key,
                                                  NetworkUtils.NetRestartNotification callback)
public static boolean isValid(java.lang.String address)
address - the string address either in IP or named format