Android String to InputStream Convert StringTOInputStream(String in)

Here you can find the source of StringTOInputStream(String in)

Description

String TO Input Stream

Declaration

public static InputStream StringTOInputStream(String in)
        throws Exception 

Method Source Code

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

import java.io.InputStream;

public class Main {

    public static InputStream StringTOInputStream(String in)
            throws Exception {

        ByteArrayInputStream is = new ByteArrayInputStream(
                in.getBytes("ISO-8859-1"));
        return is;
    }//w w w .ja  va2  s .co  m
}

Related

  1. String2InputStream(String str)
  2. StringToInputStream(String str)
  3. getInputStream(String str)
  4. StringTOInputStream(String in)
  5. StringTOInputStream(String in)
  6. StringTOInputStream(String in, String encoding)
  7. StringTOInputStream(String str)
  8. convertToInputStream(String string)