Package org.apache.james.jspf.core
Class Inet6Util
java.lang.Object
org.apache.james.jspf.core.Inet6Util
Utility functions for IPV6 operations.
see Inet6Util from the Apache Harmony project
see org.apache.harmony.util.Inet6Util
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
convertToBytes
(String hexWord, byte[] ipByteArray, int byteIndex) Converts a 4 character hex word into a 2 byte word equivalentstatic byte[]
createByteArrayFromIPAddressString
(String ipAddressString) Creates an byte[] based on an ipAddressString.static boolean
isValidIP4Word
(String word) static boolean
isValidIP6Address
(String ipAddress) static boolean
isValidIPV4Address
(String value) Takes a string and parses it to see if it is a valid IPV4 address.
-
Method Details
-
createByteArrayFromIPAddressString
Creates an byte[] based on an ipAddressString. No error handling is performed here. -
convertToBytes
Converts a 4 character hex word into a 2 byte word equivalent -
isValidIP6Address
-
isValidIP4Word
-
isValidIPV4Address
Takes a string and parses it to see if it is a valid IPV4 address.- Returns:
- true, if the string represents an IPV4 address in dotted notation, false otherwise
-