|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openexchange.admin.tools.NetUtil
public class NetUtil
Constructor Summary | |
---|---|
NetUtil()
|
Method Summary | |
---|---|
static void |
checkValidIPNetmask(String ipmask)
check if ipmask is a valid network definition either in cidr or dotted decimal notation. |
static String |
CIDR2Mask(int cidr)
return dotted decimal notation representation as a String of the CIDR representation of the netmask |
static boolean |
isValidBroadcast(String broadcast,
String net,
String mask)
check if broadcast address matches with given network and netmask network could also be an ip address fitting in the network |
static boolean |
isValidIPAddress(String address)
check if address is a valid ip address in dotted decimal notation. |
static boolean |
isValidIPNetmask(String ipmask)
check if ipmask is a valid network definition either in cidr or dotted decimal notation. |
static boolean |
isValidNetmask(String mask)
check if mask is a valid netmask in dotted decimal notation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetUtil()
Method Detail |
---|
public static final boolean isValidBroadcast(String broadcast, String net, String mask)
broadcast
- net
- mask
-
public static final boolean isValidNetmask(String mask)
mask
-
public static final boolean isValidIPAddress(String address)
address
-
public static final boolean isValidIPNetmask(String ipmask)
ipmask
-
public static final void checkValidIPNetmask(String ipmask) throws InvalidDataException
ipmask
-
InvalidDataException
public static final String CIDR2Mask(int cidr)
cidr
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |