add forEach inputstream method that delegate to thre reader imp