File Android

import java.io.ByteArrayInputStream;
import java.io.InputStream;
class Common {
    public static InputStream String2InputStream(String str) {
      ByteArrayInputStream stream = new ByteArrayInputStream(str.getBytes());
      return stream;
    }
}