rename InputBuffer and OutputBuffer to InputStream and OutputStream, respectively.