Add stream-based copy, write, and read helpers.