Get byte Array Sub array - Android File Input Output

Android examples for File Input Output:Byte Array

Description

Get byte Array Sub array

Demo Code


//package com.java2s;

public class Main {

    public static byte[] byteArraySub(byte[] source, int start, int len) {
        byte[] des = new byte[len];
        for (int i = 0; i < len; i++) {
            des[i] = source[start + i];/*from   www . j  a v a 2s  . c  om*/
        }
        return des;
    }
}

Related Tutorials