override input/outputstream read/write
Merge pull request #1 from charles-cooper/master

override intputstream /outputstream read and write for byte buffers