Android Byte Array to InputStream Convert byte2Stream(byte[] buf)

Here you can find the source of byte2Stream(byte[] buf)

Description

byte Stream

Declaration

public static final InputStream byte2Stream(byte[] buf) 

Method Source Code

//package com.java2s;
import java.io.ByteArrayInputStream;

import java.io.InputStream;

public class Main {
    public static final InputStream byte2Stream(byte[] buf) {
        return new ByteArrayInputStream(buf);
    }// www.  ja  va2s  . c o m
}