public class IPv6SubnetInfo extends SubnetInfo
Constructor and Description |
---|
IPv6SubnetInfo(Inet6Address address,
int prefixLength) |
Modifier and Type | Method and Description |
---|---|
String |
getCidrSignature()
Return the CIDR representation of this subnet, depending on whether it is an IPv4 or an IPv6 subnet.
|
String |
getHostAddress()
Return the string representation of the IP hostAddress represented by this subnet.
|
String |
getNetworkAddress()
Return the string representation of the IP hostAddress represented by the subnet with the networkNetmask applied.
|
boolean |
isInRange(String address)
Return true if the IP hostAddress string representation passed as argument is in the range
of the subnet represented by this SubnetInfo.
|
getSubnetInfo, getSubnetInfo, getSubnetInfo
public IPv6SubnetInfo(Inet6Address address, int prefixLength) throws UnknownHostException
UnknownHostException
public String getHostAddress()
getHostAddress
in class SubnetInfo
public String getNetworkAddress()
getNetworkAddress
in class SubnetInfo
public String getCidrSignature()
getCidrSignature
in class SubnetInfo
public boolean isInRange(String address)
isInRange
in class SubnetInfo
address
- Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.