Java Integer to IP Address intToIp(int address)

Here you can find the source of intToIp(int address)

Description

int To Ip

License

Open Source License

Declaration

public static String intToIp(int address) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String intToIp(int address) {
        StringBuilder result = new StringBuilder();

        result.append((address & 0xFF000000) >>> 24).append(".");
        result.append((address & 0x00FF0000) >>> 16).append(".");
        result.append((address & 0x0000FF00) >>> 8).append(".");
        result.append(address & 0x000000FF);

        return result.toString();
    }//from   w w w  .j a  v  a  2  s.  co m
}

Related

  1. int2IP(long ip)
  2. Int2Ip(long ip)
  3. int2IpAddressString(long i)
  4. int2ipstr(int addr)
  5. int2IpStr(long ip)
  6. intToIp(int i)
  7. intToIp(int i)
  8. intToIp(int i)
  9. intToIP(int intIP)