#import <ObjectiveLib/LayeredInStream.h>
Inheritance diagram for OLLayeredInStream:

Public Member Functions | |
| (void) | - close |
| Close the stream. | |
| (id) | - connectedInStream |
| Return the OLConnectedInStream at the bottom of the stream stack. | |
| (unsigned) | - readBytes:count: |
| Read a sequence of bytes from the stream. | |
Initializers and Deallocators | |
| (void) | - dealloc |
| Finalize the stream and deallocate any allocated memory. | |
| (id) | - initWithInStream: |
| Initialize the stream. | |
Protected Attributes | |
| OLInStream * | stream |
| The stream on top of which this stream is layered. | |
Layered streams can filter data that are initially read from connected streams. The methods in OLLayeredInStream merely forward messages to the underlying in stream.
| - (void) close |
Close the stream.
After receiving this message the stream will no long be available for reading.
| OLInputOutputException | if there is an error closing the stream |
Reimplemented from OLInStream.
Reimplemented in OLBzlibInStream, and OLZlibInStream.
| - (id) connectedInStream |
Return the OLConnectedInStream 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 OLBufferingInStream, OLBzlibInStream, OLGzipInStream, OLObjectInStream, and OLZlibInStream.
| - (id) initWithInStream: | (OLInStream *) | underStream |
Initialize the stream.
| underStream | the stream that functions as the layer under this one |
Reimplemented in OLBufferingInStream, OLBzlibInStream, OLObjectInStream, and OLZlibInStream.
| - (unsigned) readBytes: | (uint8_t *) | buffer | ||
| count: | (unsigned) | max | ||
Read a sequence of bytes from the stream.
This implementation merely forwards the message to the next stream down in the stream stack.
| OLInputOutputException | if there is an error reading from the stream |
| buffer | the address to which the bytes should be read | |
| max | the maximum number bytes that should be read |
Reimplemented from OLInStream.
Reimplemented in OLBufferingInStream, OLBzlibInStream, OLGzipInStream, and OLZlibInStream.
- (OLInStream*) stream [protected] |
The stream on top of which this stream is layered.
|