Added parseStream and parseStateStream for stateless and stateful stream
parsing respectively.