Android ByteArrayInputStream Create byteTOInputStream(byte[] in)

Here you can find the source of byteTOInputStream(byte[] in)

Description

byte array to InputStream

Parameter

Parameter Description
in a parameter

Exception

Parameter Description
Exception an exception

Declaration

public static InputStream byteTOInputStream(byte[] in) throws Exception 

Method Source Code

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

import java.io.InputStream;

public class Main {
    /**/*www.  j  a v a  2 s  .  c  om*/
     * byte array to InputStream
     * 
     * @param in
     * @return
     * @throws Exception
     */
    public static InputStream byteTOInputStream(byte[] in) throws Exception {
        ByteArrayInputStream is = new ByteArrayInputStream(in);
        return is;
    }
}

Related

  1. byteTOInputStream(byte[] in)
  2. byteTOInputStream(byte[] in)
  3. byteTOInputStream(byte[] in)
  4. byteToInputSteram(byte[] data)