java.lang.Object
com.pervasive.datarush.commons.util.IPAddressUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcheckAuthority(URL url) static StringcheckExternalForm(URL url) static StringcheckHostString(String host) static byte[]convertFromIPv4MappedAddress(byte[] addr) static booleanstatic booleanstatic booleanmatch(char c, long lowMask, long highMask) static intstatic intstatic byte[]static byte[]
-
Constructor Details
-
IPAddressUtil
public IPAddressUtil()
-
-
Method Details
-
textToNumericFormatV4
-
textToNumericFormatV6
-
isIPv4LiteralAddress
- Parameters:
src- a String representing an IPv4 address in textual format- Returns:
- a boolean indicating whether src is an IPv4 literal address
-
isIPv6LiteralAddress
- Parameters:
src- a String representing an IPv6 address in textual format- Returns:
- a boolean indicating whether src is an IPv6 literal address
-
convertFromIPv4MappedAddress
public static byte[] convertFromIPv4MappedAddress(byte[] addr) -
match
public static boolean match(char c, long lowMask, long highMask) -
scan
-
scan
-
checkAuthority
-
checkExternalForm
-
checkHostString
-