- The Stream class
- Provides a generic view on data sources and data destinations
- Isolates the programmer from operating system details
- Offers reading and writing of raw, binary data
- Chunked and sequenced as bytes
- No char encoding is involved
- Synchronous reading and writing
- Read and Write transfer byte arrays
- A subclass must implement the operations Read and Write
- Asynchronous reading and writing - (not covered in this lecture)
- BeginRead and EndRead
- BeginWrite and EndWrite
- Rely on Read and Write
- A stream can be queried for its capabilities
- CanRead, CanWrite, CanSeek
| | |