public static String getText ( InputStream is ) throws IOException { BufferedReader reader = new BufferedReader ( new InputStreamReader ( is ) ) ; return getText ( reader ) ; }
Read the content of this InputStream and return it as a String . The stream is closed before this method returns .