Lecture overview -- Keyboard shortcut: 'u'  Previous page: The Decorator Pattern at Run Time -- Keyboard shortcut: 'p'    Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 40 : 40
Object-oriented Programming in C#
Input and Output Classes
The Decorator Pattern and Streams

We build a compressed stream on a buffered stream on a file stream

The compressed stream decorates the buffered stream

The buffered stream decorates the file stream

Compression and buffering decoration of a FileStream

/user/normark/oop-csharp-1/sources/c-sharp/io/decorator/compression/compress.csA program that compresses a file.


/user/normark/oop-csharp-1/sources/c-sharp/io/decorator/compression/appl-and-outputSample application together with program output (compression rate).


/user/normark/oop-csharp-1/sources/c-sharp/io/decorator/compression/decompress.csThe corresponding program that decompresses the file.