Android Byte Array to String Convert byteArrayToString(byte[] data)

Here you can find the source of byteArrayToString(byte[] data)

Description

byte Array To String

License

Apache License

Declaration

public static String byteArrayToString(byte[] data) 

Method Source Code

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

import org.apache.commons.codec.binary.Hex;

public class Main {
    public static String byteArrayToString(byte[] data) {
        return new String(Hex.encodeHex(data));
    }/*from ww w. j  a  v a 2s .  com*/
}

Related

  1. toText(byte[] arr)
  2. byteArray(StringBuilder buffer, byte[] bytes)
  3. byteArrayToInt(byte[] value, int offset)
  4. byteArrayToShort(byte[] value, int offset)
  5. byteArrayToString(byte[] data)
  6. writeByteArray(byte[] bytes)