Class Inet6Util

java.lang.Object
org.apache.james.jspf.core.Inet6Util

public class Inet6Util extends Object
Utility functions for IPV6 operations. see Inet6Util from the Apache Harmony project see org.apache.harmony.util.Inet6Util
  • Method Details

    • createByteArrayFromIPAddressString

      public static byte[] createByteArrayFromIPAddressString(String ipAddressString)
      Creates an byte[] based on an ipAddressString. No error handling is performed here.
    • convertToBytes

      public static void convertToBytes(String hexWord, byte[] ipByteArray, int byteIndex)
      Converts a 4 character hex word into a 2 byte word equivalent
    • isValidIP6Address

      public static boolean isValidIP6Address(String ipAddress)
    • isValidIP4Word

      public static boolean isValidIP4Word(String word)
    • isValidIPV4Address

      public static boolean isValidIPV4Address(String value)
      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