#import <ObjectiveLib/LayeredOutStream.h>
Inheritance diagram for OLLayeredOutStream:

Public Member Functions | |
| (void) | - close |
| Close the stream. | |
| (id) | - connectedOutStream |
| Return the OLConnectedOutStream at the bottom of the stream stack. | |
| (void) | - flush |
| Flush the stream. | |
| (unsigned) | - writeBytes:count: |
| Write bytes to the stream. | |
Initializers and Deallocators | |
| (void) | - dealloc |
| Finalize the stream and deallocate any allocated memory. | |
| (id) | - initWithOutStream: |
| Initialize the stream. | |
Protected Attributes | |
| OLOutStream * | stream |
| The stream on top of which this stream is layered. | |
Layered streams can filter data that are ultimately written out to connected streams. The methods in OLLayeredOutStream merely forward messages to the underlying out stream.
| - (void) close |
Close the stream.
After receiving this message the stream will no longer be available for writing.
| OLInputOutputException | if there is an error closing the stream |
Reimplemented from OLOutStream.
Reimplemented in OLBzlibOutStream, OLGzipOutStream, and OLZlibOutStream.
| - (id) connectedOutStream |
Return the OLConnectedOutStream at the bottom of the stream stack.
All layered streams in this stack of layered streams will return the same value of the connected stream.
| - (void) dealloc |
Finalize the stream and deallocate any allocated memory.
Reimplemented in OLBufferingOutStream, OLBzlibOutStream, OLGzipOutStream, OLObjectOutStream, and OLZlibOutStream.
| - (void) flush |
Flush the stream.
Any data that is pending or buffered will be written and the stream will be restored to a pristine state.
| OLInputOutputException | if there is an error flushing the stream |
Reimplemented from OLOutStream.
Reimplemented in OLBufferingOutStream.
| - (id) initWithOutStream: | (OLOutStream *) | underStream |
Initialize the stream.
| underStream | the stream that functions as the layer under this one |
Reimplemented in OLBufferingOutStream, OLBzlibOutStream, OLObjectOutStream, and OLZlibOutStream.
| - (unsigned) writeBytes: | (const uint8_t *) | bytes | ||
| count: | (unsigned) | count | ||
Write bytes to the stream.
This implementation merely forwards the message to the next lower stream in the stream stack.
| OLInputOutputException | if there is an error writing to the stream |
| bytes | the bytes to write | |
| count | the number of bytes to write |
Reimplemented from OLOutStream.
Reimplemented in OLBufferingOutStream, OLBzlibOutStream, OLGzipOutStream, and OLZlibOutStream.
- (OLOutStream*) stream [protected] |
The stream on top of which this stream is layered.
|