public static String normalizeInet4Address(String ip4String){
  final int[] octets=parseInet4Address(ip4String);
  if (octets == null) {
    return null;
  }
  StringBuilder sb=new StringBuilder();
  for (int i=0; i < 4; i++) {
    if (i > 0) {
      sb.append('.');
    }
    sb.append(octets[i]);
  }
  return sb.toString();
}

public static String normalizeInet4Address ( String ip4String ) { final int [ ] octets = parseInet4Address ( ip4String ) ; if ( octets == null ) { return null ; } StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < 4 ; i ++ ) { if ( i > 0 ) { sb . append ( '.' ) ; } sb . append ( octets [ i ] ) ; } return sb . toString ( ) ; }
normalize a string representing an ipv4 address to the canonical representation with four decimal octets ( d . d . d . d ) .
