Added double buffer to InputStreamParserSource and adjusted tests and supporting code