Introduction
Here is the source code for Main.java
Source
//package com.java2s;
import java.util.Scanner;
public class Main {
public static String convertStreamToString(java.io.InputStream is) {
Scanner s = new Scanner(is).useDelimiter("\\A");
return s.hasNext() ? s.next() : "";
}
}