public class UserSpecifiedNetwork
extends java.lang.Object
Constructor and Description |
---|
UserSpecifiedNetwork(int o1,
int o2,
int o3,
int o4,
int bits)
Create object from user specified data.
|
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<UserSpecifiedNetwork> |
calcArrayList(java.lang.String networkOpt) |
boolean |
inetAddressOnNetwork(java.net.InetAddress ia)
Test if an internet address lives on this user specified network.
|
public UserSpecifiedNetwork(int o1, int o2, int o3, int o4, int bits)
o1
- First octeto2
- Second octeto3
- Third octeto4
- Fourth octetbits
- Bits on the left to comparepublic boolean inetAddressOnNetwork(java.net.InetAddress ia)
ia
- Address to test.public static java.util.ArrayList<UserSpecifiedNetwork> calcArrayList(java.lang.String networkOpt)