Samond Classes Library 1.2.0-RELEASE build 166
|
Streams communications protocol. More...
#import <SCStreaming.h>
Instance Methods | |
(id) | - initWithStream: |
(id) | - initWithFileStream: |
(void) | - writeToStream: |
(void) | - writeToFileStream: |
(void) | - appendToFileStream: |
(NSString *) | - className |
Streams communications protocol.
Declares methods for communicate between classes and streams. Defined by the protocol methods support based operations such are writing class instances into the stream and reading and initializing class instances from the stream.
- (void) appendToFileStream: | (NSString *) | path |
Appends the class instance data into the file stream with the specified path.
path | - the path to the output file stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
Reimplemented in NSString(SCString), NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), NSDictionary(SCNSDictionary), NSSet(SCNSSet), NSNull(SCNull), NSDate(SCDate), NSNumber(SCNumber), and SCObject.
- (NSString *) className |
- (id) initWithFileStream: | (NSString *) | path |
Initializes the class instance using the data from the file stream with the specified path.
path | - the path to the source file stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
Reimplemented in NSString(SCString), NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), NSDictionary(SCNSDictionary), NSSet(SCNSSet), NSNull(SCNull), NSDate(SCDate), NSNumber(SCNumber), and SCObject.
- (id) initWithStream: | (SCStream *) | stream |
Initializes the class instance using the data from the specified stream.
stream | - the source stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
Reimplemented in NSString(SCString), NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), NSDictionary(SCNSDictionary), NSSet(SCNSSet), NSNull(SCNull), NSDate(SCDate), NSNumber(SCNumber), and SCObject.
- (void) writeToFileStream: | (NSString *) | path |
Writes the class instance data into the file stream with the specified path.
path | - the path to the output file stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
Reimplemented in NSString(SCString), NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), NSDictionary(SCNSDictionary), NSSet(SCNSSet), NSNull(SCNull), NSDate(SCDate), NSNumber(SCNumber), and SCObject.
- (void) writeToStream: | (SCStream *) | stream |
Writes the class instance data into the specified stream.
stream | - the output stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
Reimplemented in NSString(SCString), NSOrderedSet(SCNSOrderedSet), NSArray(SCNSArray), NSDictionary(SCNSDictionary), NSSet(SCNSSet), NSNull(SCNull), NSDate(SCDate), NSNumber(SCNumber), and SCObject.