Wrap IO to Buffered IO
Add stream consume function