Java IP Address Validate isIPv4Address(String ipAddress)

Here you can find the source of isIPv4Address(String ipAddress)

Description

is I Pv Address

License

Apache License

Declaration

public static boolean isIPv4Address(String ipAddress) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {
    private static Pattern VALID_IPV4_PATTERN = null;

    public static boolean isIPv4Address(String ipAddress) {
        Matcher m1 = VALID_IPV4_PATTERN.matcher(ipAddress);
        return m1.matches();
    }/*from  ww w.jav  a  2s.  c o  m*/
}

Related

  1. isIPString(String str)
  2. isIpv4(String ipv4)
  3. isIpV4Address(CharSequence address)
  4. isIPv4Address(final String input)
  5. isIPv4Address(final String input)
  6. isIPv4AddressValid(String cidr)
  7. isIpv4Correct(String ipAddress)
  8. isIPv4Format(String ip)
  9. isIPv4Format(String str)