private String readIt(InputStream stream) throws IOException { StringBuilder builder = new StringBuilder(); BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); for(String line = reader.readLine(); line != null; line = reader.readLine()) builder.append(line); reader.close(); return builder.toString(); }
Reads an InputStream and converts it to a String
Posted on
by Kim
Subscribe to:
Post Comments (Atom)
0 Responses to "Reads an InputStream and converts it to a String":
Post a Comment