Buffered input out put stream impl