Android Byte Array to String Convert getString(byte[] bytes)

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

Description

get String

License

Open Source License

Declaration

public static String getString(byte[] bytes) 

Method Source Code

//package com.java2s;

import java.nio.charset.Charset;

public class Main {
    public static String getString(byte[] bytes, String charsetName) {
        return new String(bytes, Charset.forName(charsetName));
    }/*from   ww  w .ja v a 2 s .c o  m*/

    public static String getString(byte[] bytes) {
        return getString(bytes, "GBK");
    }
}

Related

  1. byteToString(byte b)
  2. bytes2String(byte[] data)
  3. bytes2String(byte[] data, String type)
  4. bytes2StringPtr(byte[] data, String type)
  5. getString(byte[] bb)
  6. getString(byte[] bytes, String charsetName)
  7. getString(byte[] fromBytes, int offset, int length)
  8. getString(byte[] originalByte, int start, int length)
  9. getString(byte[] value)