The .NET Framework provides several classes that treat data as a stream—an ordered series of bytes. These classes are not difficult to use, but they are similar enough to be confusing. This appendix summarizes the stream classes and describes their properties and their methods. See Chapter 18, “Streams,” for more information on streams.
The following table lists the .NET Framework stream classes.
|Read and write data from an underlying stream using routines that manage specific data types (such as |
|Adds buffering to another stream type. This sometimes improves performance on relatively slow underlying devices.|
|Applies a cryptographic transformation to its data.|
|Represents a file as a stream. Usually, you can use a helper class such as |
|Lets you read and write stream data in memory. This is useful when you need a stream but don’t want to read or write a file.|
|Sends and receives data across a network connection.|
|A generic stream class. This is an abstract class, so you cannot create one directly. Instead, you must instantiate one of its subclasses.|
|These classes inherit from |