Java Byte Array to IP Address ByteToIp(int[] ips)

Here you can find the source of ByteToIp(int[] ips)

Description

Byte To Ip

License

Apache License

Declaration

public static String ByteToIp(int[] ips) 

Method Source Code

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

public class Main {
    public static String ByteToIp(int[] ips) {
        StringBuilder sb = new StringBuilder();
        sb.append(ips[0]);// www  . j a v  a 2s .c o m
        sb.append(".");
        sb.append(ips[1]);
        sb.append(".");
        sb.append(ips[2]);
        sb.append(".");
        sb.append(ips[3]);
        return sb.toString();
    }
}

Related

  1. byteToIp(byte[] ip)
  2. byteToIp(byte[] value)