Only create binaryreader/writer if stream is readable/writable.