modify inputStreamReader scope to Stream.continually way