IOUtils.toString

Read input stream to string.

@param input the stream to read from (until EOF) @param encoding the Charset to use (can be null to use default Charset) @return the string parsed from the stream @throws IOException if unable to read the stream (or handle the charset)

  1. string toString(InputStream input)
  2. string toString(InputStream input, string encoding)
    class IOUtils
    static
    string
    toString

Meta