Package | Description |
---|---|
inet.ipaddr |
Base classes for IP addresses and generic addresses.
|
inet.ipaddr.ipv4 |
Classes for IPv4
|
inet.ipaddr.ipv6 |
Classes for IPv6
|
inet.ipaddr.mac |
Classes for MAC addresses.
|
Modifier and Type | Method and Description |
---|---|
abstract IPAddress |
IPAddress.bitwiseOr(IPAddress mask)
Equivalent to calling
IPAddress.bitwiseOr(IPAddress, boolean) with the second argument as false. |
abstract IPAddress |
IPAddress.bitwiseOr(IPAddress mask,
boolean retainPrefix)
Does the bitwise disjunction with this address.
|
abstract IPAddress |
IPAddress.bitwiseOrNetwork(IPAddress mask,
int networkPrefixLength)
Does the bitwise disjunction with this address.
|
abstract IPAddress |
IPAddress.mask(IPAddress mask)
Equivalent to calling
IPAddress.mask(IPAddress, boolean) with the second argument as false. |
abstract IPAddress |
IPAddress.mask(IPAddress mask,
boolean retainPrefix)
Applies the given mask to all addresses represented by this IPAddress.
|
abstract IPAddress |
IPAddress.maskNetwork(IPAddress mask,
int networkPrefixLength)
Applies the given mask to all addresses represented by this IPAddress while also applying the given prefix length at the same time.
|
IPAddress |
IPAddressString.toAddress()
Produces the
IPAddress corresponding to this IPAddressString. |
MACAddress |
MACAddressString.toAddress()
Produces the
MACAddress corresponding to this MACAddressString. |
IPAddress |
IPAddressString.toAddress(IPAddress.IPVersion version)
Produces the
IPAddress of the specified address version corresponding to this IPAddressString. |
String |
IPAddress.toBinaryString()
Writes this address as a single binary value with always the exact same number of characters
|
String |
IPAddressSegmentSeries.toBinaryString()
Writes this IP address segment series as a single binary value with always the exact same number of characters
If this section represents a range of values outside of the network prefix length, then this is printed as a range of two binary values.
|
String |
IPAddressSection.toBinaryString() |
IPAddressDivisionSeries |
IPAddressString.toDivisionGrouping()
Returns a representation of the address string, the address string represented "as-is", converted to value ranges with bit sizes matching the original string.
|
String |
AddressComponent.toHexString(boolean with0xPrefix)
Writes this address component as a single hexadecimal value with always the exact same number of characters, with or without a preceding 0x prefix.
|
String |
IPAddressSection.toHexString(boolean with0xPrefix) |
String |
Address.toHexString(boolean with0xPrefix)
Writes this address as a single hexadecimal value with always the exact same number of characters, with or without a preceding 0x prefix.
|
IPAddress |
IPAddressString.toHostAddress()
If this address string was constructed from a string comprising of a host address with prefix length or mask,
then this provides just the host address, rather than the address with the prefix or mask applied that is
provided by
IPAddressString.toAddress() . |
String |
IPAddress.toOctalString(boolean with0Prefix)
Writes this address as a single octal value with always the exact same number of characters, with or without a preceding 0 prefix.
|
String |
IPAddressSegmentSeries.toOctalString(boolean with0Prefix)
Writes this IP address segment series as a single octal value with always the exact same number of characters, with or without a preceding 0 prefix.
|
String |
IPAddressSection.toOctalString(boolean with0Prefix) |
Modifier and Type | Method and Description |
---|---|
IPv4Address |
IPv4Address.bitwiseOr(IPAddress mask) |
IPv4Address |
IPv4Address.bitwiseOr(IPAddress mask,
boolean retainPrefix) |
IPv4AddressSection |
IPv4AddressSection.bitwiseOr(IPv4AddressSection mask)
Equivalent to
IPv4AddressSection.bitwiseOr(IPv4AddressSection, boolean) with the second argument as false. |
IPv4AddressSection |
IPv4AddressSection.bitwiseOr(IPv4AddressSection mask,
boolean retainPrefix)
Does the bitwise disjunction with this address section.
|
IPv4Address |
IPv4Address.bitwiseOrNetwork(IPAddress mask,
int networkPrefixLength) |
IPv4AddressSection |
IPv4AddressSection.bitwiseOrNetwork(IPv4AddressSection mask,
int networkPrefixLength)
Does the bitwise disjunction with this address section.
|
IPv6AddressSegment |
IPv4AddressSegment.join(IPv6AddressNetwork.IPv6AddressCreator creator,
IPv4AddressSegment low)
Joins with another IPv4 segment to produce a IPv6 segment.
|
IPv4Address |
IPv4Address.mask(IPAddress mask) |
IPv4Address |
IPv4Address.mask(IPAddress mask,
boolean retainPrefix) |
IPv4AddressSection |
IPv4AddressSection.mask(IPv4AddressSection mask)
Equivalent to
IPv4AddressSection.mask(IPv4AddressSection, boolean) with the second argument as false. |
IPv4AddressSection |
IPv4AddressSection.mask(IPv4AddressSection mask,
boolean retainPrefix)
Does the bitwise conjunction with this address.
|
IPv4Address |
IPv4Address.maskNetwork(IPAddress mask,
int networkPrefixLength) |
IPv4AddressSection |
IPv4AddressSection.maskNetwork(IPv4AddressSection mask,
int networkPrefixLength)
Produces the bitwise conjunction of the given mask with the network section of the address as indicated by the given prefix length.
|
String |
IPv4AddressSection.toInetAtonString(IPv4Address.inet_aton_radix radix,
int joinedCount) |
String |
IPv4Address.toInetAtonString(IPv4Address.inet_aton_radix radix,
int joinedCount) |
IPv4AddressSection |
IPv4AddressSection.toMaxHost() |
String |
IPv4AddressSection.toNormalizedString(IPAddressSection.IPStringOptions stringParams,
int joinCount) |
IPv4AddressSection |
IPv4AddressSection.toZeroHost() |
Modifier and Type | Method and Description |
---|---|
IPv6Address |
IPv6Address.bitwiseOr(IPAddress mask) |
IPv6Address |
IPv6Address.bitwiseOr(IPAddress mask,
boolean retainPrefix) |
IPv6AddressSection |
IPv6AddressSection.bitwiseOr(IPv6AddressSection mask)
Equivalent to
IPv6AddressSection.bitwiseOr(IPv6AddressSection, boolean) with the second argument as false. |
IPv6AddressSection |
IPv6AddressSection.bitwiseOr(IPv6AddressSection mask,
boolean retainPrefix)
Does the bitwise disjunction with this address.
|
IPv6Address |
IPv6Address.bitwiseOrNetwork(IPAddress mask,
int networkPrefixLength) |
IPv6AddressSection |
IPv6AddressSection.bitwiseOrNetwork(IPv6AddressSection mask,
int networkPrefixLength)
Does the bitwise disjunction with this address.
|
static IPv6AddressSection |
IPv6AddressSection.createSection(IPv6AddressNetwork.IPv6AddressCreator creator,
IPv6AddressSegment[] nonMixedSection,
IPv4Address mixedSection) |
IPv6Address |
IPv6Address.mask(IPAddress mask) |
IPv6Address |
IPv6Address.mask(IPAddress mask,
boolean retainPrefix) |
IPv6AddressSection |
IPv6AddressSection.mask(IPv6AddressSection mask)
Equivalent to
IPv6AddressSection.mask(IPv6AddressSection, boolean) with the second argument as false. |
IPv6AddressSection |
IPv6AddressSection.mask(IPv6AddressSection mask,
boolean retainPrefix)
Does the bitwise conjuction with this address.
|
IPv6Address |
IPv6Address.maskNetwork(IPAddress mask,
int networkPrefixLength) |
IPv6AddressSection |
IPv6AddressSection.maskNetwork(IPv6AddressSection mask,
int networkPrefixLength)
Applies the given mask to the network section of the address as indicated by the given prefix length.
|
String |
IPv6Address.toBase85String()
The base 85 string is described by RFC 1924
|
String |
IPv6AddressSection.toBase85String()
The base 85 string is described by RFC 1924
|
String |
IPv6Address.toBinaryString() |
String |
IPv6Address.toHexString(boolean with0xPrefix) |
IPv6AddressSection |
IPv6AddressSection.toMaxHost() |
String |
IPv6Address.toOctalString(boolean with0Prefix) |
IPv6AddressSection |
IPv6AddressSection.toZeroHost() |
Constructor and Description |
---|
IPv6Address(IPv6Address prefix,
MACAddress eui)
Constructs an IPv6 address from a modified EUI-64 (Extended Unique Identifier) address section and an IPv6 address section network prefix.
|
IPv6Address(IPv6AddressSection section,
MACAddress eui)
Constructs an IPv6 address from a modified EUI-64 (Extended Unique Identifier) address section and an IPv6 address section network prefix.
|
IPv6Address(IPv6AddressSection section,
MACAddressSection eui)
Constructs an IPv6 address from a modified EUI-64 (Extended Unique Identifier) address and an IPv6 address section network prefix.
|
IPv6Address(IPv6AddressSection section,
MACAddressSection eui,
CharSequence zone)
|
IPv6Address(IPv6AddressSection section,
MACAddressSection eui,
IPv6Address.IPv6Zone zone)
Constructs an IPv6 address from a modified EUI-64 (Extended Unique Identifier) address and an IPv6 address section network prefix.
|
Modifier and Type | Method and Description |
---|---|
String |
MACAddress.toDottedString() |
String |
MACAddressSection.toDottedString()
This produces the dotted hexadecimal format aaaa.bbbb.cccc
|
String |
MACAddressSection.toHexString(boolean with0xPrefix)
Writes this address as a single hexadecimal value with always the exact same number of characters, with or without a preceding 0x prefix.
|