qisdk / com.aldebaran.qi.sdk.util / IOUtils / readAllStream

readAllStream

static fun readAllStream(is: InputStream!, charset: String!): String!

Returns a string that represent the content of a stream

Parameters

is - InputStream!: the input stream

charset - String!: the output chatset

Exceptions

IOException - if file is not found

Return
String!: the content of the stream