Package | Description |
---|---|
de.innovationgate.utils.net |
Networking oriented utility classes.
|
Modifier and Type | Method and Description |
---|---|
static IPv4Address |
IPv4Calculator.calcHostMax(int[] net,
int[] mask)
Calculates the highest possible ip address from an network address and a netmask
|
static IPv4Address |
IPv4Calculator.calcHostMax(IPv4Address net,
IPv4Address netmask)
Calculates the highest possible ip address from an network address and a netmask
|
static IPv4Address |
IPv4Calculator.calcHostMin(int[] net,
int[] mask)
Calculates the lowest possible ip address from an network address and a netmask
|
static IPv4Address |
IPv4Calculator.calcHostMin(IPv4Address net,
IPv4Address netmask)
Calculates the lowest possible ip address from an network address and a netmask
|
static IPv4Address |
IPv4Calculator.calcNetwork(int[] ip,
int[] mask)
Calculates the network address from an ip address and a network mask
|
IPv4Address |
IPv4Range.getEnd()
Returns the end IP
|
IPv4Address |
IPv4Restriction.getEndIP()
Returns the end ip of a restriction of
IPv4Restriction.TYPE_RANGE |
IPv4Address |
IPv4Restriction.getHostIP()
Returns the host ip of a restriction of
IPv4Restriction.TYPE_HOST |
IPv4Address |
IPv4Restriction.getNetmask()
Returns the netmask of a restriction of
IPv4Restriction.TYPE_NETWORK |
IPv4Address |
IPv4Restriction.getNetwork()
Returns the network address of a restriction of
IPv4Restriction.TYPE_NETWORK |
IPv4Address |
IPv4Range.getStart()
Returns the start IP
|
IPv4Address |
IPv4Restriction.getStartIP()
Returns the start ip of a restriction of type
IPv4Restriction.TYPE_RANGE |
Modifier and Type | Method and Description |
---|---|
static IPv4Address |
IPv4Calculator.calcHostMax(IPv4Address net,
IPv4Address netmask)
Calculates the highest possible ip address from an network address and a netmask
|
static IPv4Address |
IPv4Calculator.calcHostMin(IPv4Address net,
IPv4Address netmask)
Calculates the lowest possible ip address from an network address and a netmask
|
int |
IPv4Address.compareTo(IPv4Address second)
A defacto compare to operation.
|
boolean |
IPv4Restriction.exists(IPv4Address ip)
checks if the given ip is included in this restriction
|
boolean |
IPv4Range.exists(IPv4Address ip)
Determines if an IP address is contained in this IP range
|
void |
IPv4Range.set(IPv4Address start,
IPv4Address end)
Sets start and end IP at once
|
void |
IPv4Range.setEnd(IPv4Address end)
Sets the end IP
|
void |
IPv4Restriction.setEndIP(IPv4Address endIP)
Sets the end ip of a restriction of
IPv4Restriction.TYPE_RANGE |
void |
IPv4Restriction.setHostIP(IPv4Address hostIP)
Sets the host ip of a restriction of
IPv4Restriction.TYPE_HOST |
void |
IPv4Restriction.setNetmask(IPv4Address netmask)
Sets the netmask of a restriction of
IPv4Restriction.TYPE_NETWORK |
void |
IPv4Restriction.setNetwork(IPv4Address network)
Sets the network address of a restriction of
IPv4Restriction.TYPE_NETWORK |
void |
IPv4Range.setStart(IPv4Address start)
Sets the start IP
|
void |
IPv4Restriction.setStartIP(IPv4Address startIP)
Sets the start ip of a restriction of type
IPv4Restriction.TYPE_RANGE |
Constructor and Description |
---|
IPv4Range(IPv4Address start,
IPv4Address end)
Creates an IP range with start and end IP
|