Android Byte Array to String Convert ByteArrayToString(byte[] input)

Here you can find the source of ByteArrayToString(byte[] input)

Description

Byte Array To String

Declaration

public static String ByteArrayToString(byte[] input) 

Method Source Code

//package com.java2s;
import java.nio.charset.Charset;

public class Main {
    public static String ByteArrayToString(byte[] input) {
        if (input == null)
            return null;
        else/*  w w  w .  ja v a 2  s .  c om*/
            return new String(input, Charset.forName("utf-8"));
    }
}

Related

  1. loadConvert(byte[] s, int offset, boolean lengthFlag)
  2. getStringForByte(byte[] bs)
  3. fromBytes(byte abyte0[])
  4. toString(byte[] b, int start, int end)
  5. Bcd2Str(byte[] b)
  6. byteArrayToString(byte[] b)
  7. byteArrayToString(byte[] bytes)
  8. byteToString(byte b)
  9. bytes2String(byte[] data)