Java Byte Array Convert To bytesToIpString(byte[] bytes)

Here you can find the source of bytesToIpString(byte[] bytes)

Description

bytes To Ip String

License

Apache License

Declaration

public static String bytesToIpString(byte[] bytes) 

Method Source Code

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

public class Main {
    public static String bytesToIpString(byte[] bytes) {
        return new StringBuffer().append(bytes[0] & 0xFF).append('.').append(bytes[1] & 0xFF).append('.')
                .append(bytes[2] & 0xFF).append('.').append(bytes[3] & 0xFF).toString();
    }// w ww .java2  s  . c  o  m
}

Related

  1. bytesToCompressedBases(final byte[] readBases)
  2. bytesToData(byte[][] fileData)
  3. bytesToDec(byte[] bytes)
  4. bytesToEntryCreditAddress(byte[] key)
  5. BytesToInt(byte abyte0[], int offset)
  6. bytesToLength(final byte bytes[])
  7. bytesToMac(byte[] bytes)
  8. bytesToMac(final byte[] bytes)
  9. bytesToNumber(byte[] buffer, int start, int length)