Android ByteArrayInputStream Create byteToInputSteram(byte[] data)

Here you can find the source of byteToInputSteram(byte[] data)

Description

byte To Input Steram

Declaration

public static InputStream byteToInputSteram(byte[] data) 

Method Source Code

//package com.java2s;

import java.io.*;

public class Main {

    public static InputStream byteToInputSteram(byte[] data) {
        InputStream is = null;/*w  w  w . j  a  v a2  s.  c  om*/
        if (null != data && data.length > 0) {
            is = new ByteArrayInputStream(data);
        }
        return is;
    }
}

Related

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