Samond Classes Library 1.2.6-STABLE build 219
|
Streams events handling class. More...
#import <SCStreamDelegate.h>
Handling Stream Errors | |
(void) | - stream:didDetectError: |
Data Reading Events Handlers | |
(void) | - willReadObjectFromStream: |
(void) | - stream:willReadBytes:toBuffer: |
(void) | - stream:didFinishReadingObject: |
(void) | - stream:didFinishReadingBytes:toBuffer: |
Data Writing Events Handlers | |
(void) | - stream:willWriteObject: |
(void) | - stream:willWriteBytes:fromBuffer: |
(void) | - stream:didFinishWritingObject: |
(void) | - stream:didFinishWritingBytes:fromBuffer: |
File Stream Opening and Closing Events Handlers | |
(void) | - stream:willOpenWithPath:mode: |
(void) | - willCloseStream: |
(void) | - stream:didFinishOpeningWithPath:mode:successfully: |
(void) | - didFinishClosingStream: |
Streams events handling class.
Implements the methods which are declared in the SCStreamDelegate protocol.
- (void) didFinishClosingStream: | (SCStream *) | stream |
Tells the delegate that the stream instance is finishing the closing the file stream.
stream | - the stream instance |
Reimplemented from <SCStreamDelegate>.
- (void) stream: | (SCStream *) | stream | |
didDetectError: | (SCStreamStatus) | error | |
Tells the delegate that the stream detects the specified stream error.
stream | - the erroneous stream |
error | - the detected stream error |
Reimplemented from <SCStreamDelegate>.
- (void) stream: | (SCStream *) | stream | |
didFinishOpeningWithPath: | (NSString *) | path | |
mode: | (SCFileStreamOpenMode) | mode | |
successfully: | (BOOL) | successfully | |
Tells the delegate that the stream instance is finishing the opening the file stream.
stream | - the stream instance |
path | - the path of the file stream |
mode | - the stream opening mode |
successfully | - YES if the opening operation is successfully comlited, otherwise NO |
Reimplemented from <SCStreamDelegate>.
- (void) stream: | (SCStream *) | stream | |
didFinishReadingBytes: | (SCSize) | bytes | |
toBuffer: | (void *) | buffer | |
Tells the delegate that the stream is finishing the reading the data.
stream | - the stream instance |
bytes | - the number of the actually read bytes from the stream |
buffer | - the pointer to the data which will be readed from the stream |
Reimplemented from <SCStreamDelegate>.
- (void) stream: | (SCStream *) | stream | |
didFinishReadingObject: | (id<SCStreaming>) | object | |
Tells the delegate that the stream is finishing the reading the object.
stream | - the stream instance |
object | - the object, which will be readed from the stream |
Reimplemented from <SCStreamDelegate>.
- (void) stream: | (SCStream *) | stream | |
didFinishWritingBytes: | (SCSize) | bytes | |
fromBuffer: | (const void *) | buffer | |
Tells the delegate that the stream is finishing the writing data.
stream | - the stream instance |
bytes | - the number of the actually writed bytes |
buffer | - the pointer to the buffer with the data which will be writed into the stream |
Reimplemented from <SCStreamDelegate>.
- (void) stream: | (SCStream *) | stream | |
didFinishWritingObject: | (id<SCStreaming>) | object | |
Tells the delegate that the stream is finishing the writing the object.
stream | - the stream instance |
object | - the object which will be writed into the stream |
Reimplemented from <SCStreamDelegate>.
- (void) stream: | (SCStream *) | stream | |
willOpenWithPath: | (NSString *) | path | |
mode: | (SCFileStreamOpenMode) | mode | |
Tells the delegate that the stream instance is about to open the file stream with the specified path and opening mode.
stream | - the stream instance |
path | - the path to the file stream |
mode | - the file stream opening mode |
Reimplemented from <SCStreamDelegate>.
Tells the delegate that the stream is about to read the data.
stream | - the stream instance |
bytes | - the number of the bytes to read from the stream |
buffer | - the pointer to the reading buffer |
Reimplemented from <SCStreamDelegate>.
- (void) stream: | (SCStream *) | stream | |
willWriteBytes: | (SCSize) | bytes | |
fromBuffer: | (const void *) | buffer | |
Tells the delegate that the stream is about to write the data.
stream | - the stream instance |
bytes | - the number of bytes to writing to the stream |
buffer | - the pointer to the buffer with data to writing to the stream |
Reimplemented from <SCStreamDelegate>.
- (void) stream: | (SCStream *) | stream | |
willWriteObject: | (id<SCStreaming>) | object | |
Tells the delegate that the stream is about to write the specified object.
stream | - the stream instance |
object | - the object to write to the stream |
Reimplemented from <SCStreamDelegate>.
- (void) willCloseStream: | (SCStream *) | stream |
Tells the delegate that the stream instance is about to close the file stream.
stream | - the stream instance |
Reimplemented from <SCStreamDelegate>.
- (void) willReadObjectFromStream: | (SCStream *) | stream |
Tells the delegate that the stream is about to read the object.
stream | - the stream instance |
Reimplemented from <SCStreamDelegate>.