public static InetAddress longToIp(long ip){
  try {
    return InetAddress.getByAddress(longToNetworkByteOrderArray(ip));
  }
 catch (  UnknownHostException e) {
    throw new IllegalArgumentException("Invalid IP " + ip);
  }
}

public static InetAddress longToIp ( long ip ) { try { return InetAddress . getByAddress ( longToNetworkByteOrderArray ( ip ) ) ; } catch ( UnknownHostException e ) { throw new IllegalArgumentException ( "Invalid IP " + ip ) ; } }
convert an host byte order long to inetaddress .
