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

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

A program that compresses a file.
Sample application together with program output (compression rate).
The corresponding program that decompresses the file.