CDAP-489: Updated StreamReader to have ability to reuse it in the Stream Client integration tests.