Android Array to String Convert toString(byte[] buffer)

Here you can find the source of toString(byte[] buffer)

Description

Method convert byte[] to String

License

Open Source License

Parameter

Parameter Description
The string to be format.

Declaration

public static String toString(byte[] buffer) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*  w w w.  ja v a 2s  .c om*/
     * Method convert byte[] to String
     *
     * @param The string to be format.
     *
     */
    public static String toString(byte[] buffer) {
        if (null == buffer)
            return null;
        else
            return new String(buffer);
    }
}

Related

  1. bytetoString(byte[] b)
  2. hexToString(byte[] ids)
  3. toString(byte[] ba)
  4. toString(byte[] ba, int offset, int length)
  5. byteToString(byte[] str)
  6. toString(final byte[] bytes)
  7. toString(final byte[] bytes, String charset)
  8. toStringArrayToString(String[] array)
  9. ArraysToString(String[] arrays)