Android Byte Array to String Convert getString(byte[] originalByte, int start, int length)

Here you can find the source of getString(byte[] originalByte, int start, int length)

Description

get String

Declaration

public static String getString(byte[] originalByte, int start,
        int length) 

Method Source Code

//package com.java2s;

import java.util.Arrays;

public class Main {

    public static String getString(byte[] bb) {
        return new String(bb);
    }/* w  w  w  .  j a va2 s .  c  o m*/

    public static String getString(byte[] originalByte, int start,
            int length) {

        byte[] strByte = Arrays.copyOfRange(originalByte, start, start
                + length);
        return new String(strByte);
    }
}

Related

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