public class CIDRNetwork extends Object
Constructor and Description |
---|
CIDRNetwork(String network)
Default constructor
|
CIDRNetwork(String ipAddress,
String subnetMask) |
Modifier and Type | Method and Description |
---|---|
String |
getBroadcastAddress() |
String |
getCIDRString() |
String |
getNetworkAddress() |
int |
getNetworkBits() |
String |
getNextIPAddress(String startAddress,
String endAddress) |
String |
getSubnetMask() |
boolean |
isValidAddressForNetwork(String address) |
boolean |
isValidDHCPRange(String startAddress,
String endAddress) |
String |
toString() |
public CIDRNetwork(String network) throws IllegalArgumentException
network
- IllegalArgumentException
public String getNextIPAddress(String startAddress, String endAddress) throws EOFException
startAddress
- endAddress
- EOFException
public String getNetworkAddress()
public int getNetworkBits()
public String getSubnetMask()
public String getBroadcastAddress()
public String getCIDRString()
public boolean isValidDHCPRange(String startAddress, String endAddress)
startAddress
- endAddress
- public boolean isValidAddressForNetwork(String address)
address
- Copyright © 2024. All rights reserved.