If a java.io.InputStream object is present , how should you process that object and produce a String?
Suppose an InputStream that contains text data, and I want to convert it to a String, so for example
write that to a log file.
What is the easiest way to take the InputStream and convert it to a String?
public String convertStreamToString(InputStream is) {
// ???
}