- java.lang.Object
-
- com.pervasive.datarush.commons.util.IPAddressUtil
-
public class IPAddressUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description IPAddressUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
checkAuthority(URL url)
static String
checkExternalForm(URL url)
static String
checkHostString(String host)
static byte[]
convertFromIPv4MappedAddress(byte[] addr)
static boolean
isIPv4LiteralAddress(String src)
static boolean
isIPv6LiteralAddress(String src)
static boolean
match(char c, long lowMask, long highMask)
static int
scan(String s, long lowMask, long highMask)
static int
scan(String s, long lowMask, long highMask, char[] others)
static byte[]
textToNumericFormatV4(String src)
static byte[]
textToNumericFormatV6(String src)
-
-
-
Method Detail
-
textToNumericFormatV4
public static byte[] textToNumericFormatV4(String src)
-
textToNumericFormatV6
public static byte[] textToNumericFormatV6(String src)
-
isIPv4LiteralAddress
public static boolean isIPv4LiteralAddress(String src)
- Parameters:
src
- a String representing an IPv4 address in textual format- Returns:
- a boolean indicating whether src is an IPv4 literal address
-
isIPv6LiteralAddress
public static boolean isIPv6LiteralAddress(String src)
- 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
public static int scan(String s, long lowMask, long highMask)
-
scan
public static int scan(String s, long lowMask, long highMask, char[] others)
-
-