|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lukasfeiler.util.Int
com.lukasfeiler.ipconfig.Netmask
An IPv4 Netmask.
| Constructor Summary | |
Netmask(int i)
Constructor that takes the netmask as an int value as an argument. |
|
Netmask(java.lang.String s)
Constructor that takes the netmask in dottet-quad notation as an argument. |
|
| Method Summary | |
void |
validate()
Throws a NonContiniousNetmaskException if this netmask is not valid (is not continious) |
void |
validate(IPAddress ip1,
IPAddress ip2)
Throws an IPAddressesNotInSameSubnetException if the two IP addresses are not in the same subnet specified by this netmask. |
| Methods inherited from class com.lukasfeiler.util.Int |
allBitsSet, getBit, getOctet, getOctets, intValue, toBitString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Netmask(java.lang.String s)
throws InvalidIntOctetException,
com.lukasfeiler.ipconfig.IPException,
IPConfigException
s - A string in the dottet-quad notation (e.g. 255.255.255.0).
public Netmask(int i)
throws com.lukasfeiler.ipconfig.IPException
| Method Detail |
public void validate(IPAddress ip1,
IPAddress ip2)
throws IPConfigException
IPConfigException
public void validate()
throws NonContiniousNetmaskException
NonContiniousNetmaskException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||