Use Apache commons IOUtils and copy the InputStream into a StringWriter like this:
StringWriter writer = new StringWriter();
IOUtils.copy(inputStream, writer, encoding);
String theString = writer.toString();
or else
// NB: does not close inputStream, you'll have to use try-with-resources for that
String theString = IOUtils.toString(inputStream, encoding);
Also, you could use ByteArrayOutputStream if you don't want to mix your Streams and Writers