Skip to content

Instantly share code, notes, and snippets.

View a-thomas's full-sized avatar

Alexandre THOMAS a-thomas

View GitHub Profile
@a-thomas
a-thomas / InputStreamToString.java
Last active October 13, 2015 20:47
Formation Android 2)
public class InputStreamToString {
public static String convert(InputStream is) {
String line = "";
StringBuilder builder = new StringBuilder();
BufferedReader rd=new BufferedReader(new InputStreamReader(is));
try {
while ((line = rd.readLine()) != null) {