BoxBuffer wraps either BoxReader for reading or BufferWriter for writing. Thus it is capable of doing either reading or writing, but not both. Change-Id: Id57370755a586bfdef1291a23af29f5b1feec903