Android String to InputStream Convert getInputStream(String str)

Here you can find the source of getInputStream(String str)

Description

get Input Stream

Declaration

public static InputStream getInputStream(String str) 

Method Source Code

//package com.java2s;

import java.io.ByteArrayInputStream;

import java.io.InputStream;

public class Main {
    public static InputStream getInputStream(String str) {
        InputStream inputStream = new ByteArrayInputStream(str.getBytes());
        return inputStream;
    }//  w w w. ja  v  a  2  s  .  co  m
}

Related

  1. String2InputStream(String str)
  2. StringToInputStream(String str)
  3. StringTOInputStream(String in)
  4. StringTOInputStream(String in)
  5. StringTOInputStream(String in)
  6. StringTOInputStream(String in, String encoding)