Added support for parser of an InputStream