Samond Classes Library 1.2.6-STABLE build 219
List of all members
<SCStreaming> Protocol Reference

Streams communications protocol. More...

#import <SCStreaming.h>

+ Inheritance diagram for <SCStreaming>:

Instance Properties

NSString * className
 

Streams Support

(instancetype) - initWithStream:
 
(instancetype) - initWithFileStream:
 
(void) - writeToStream:
 
(void) - writeToFileStream:
 
(void) - appendToFileStream:
 

Detailed Description

Streams communications protocol.

SDK
macOS 10.6+, iOS 7.0+, GNUstep
Since
version 1.1.3

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.

Method Documentation

- (void) appendToFileStream: (NSString *)  path

Appends the class instance data into the file stream with the specified path.

Parameters
path- the path to the output file stream
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected

Reimplemented in NSObject(SCObject).

- (instancetype) initWithFileStream: (NSString *)  path

Initializes the class instance using the data from the file stream with the specified path.

Parameters
path- the path to the source file stream
Returns
A newly initialized class instance
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected

Reimplemented in NSObject(SCObject).

- (instancetype) initWithStream: (SCStream *)  stream

Initializes the class instance using the data from the specified stream.

Parameters
stream- the source stream
Returns
A newly initialized class instance
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected

Reimplemented in NSObject(SCObject).

- (void) writeToFileStream: (NSString *)  path

Writes the class instance data into the file stream with the specified path.

Parameters
path- the path to the output file stream
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected

Reimplemented in NSObject(SCObject).

- (void) writeToStream: (SCStream *)  stream

Writes the class instance data into the specified stream.

Parameters
stream- the output stream
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected

Reimplemented in NSObject(SCObject).

Property Documentation

- (NSString*) className
readnonatomiccopy

A name of the receiving instance class


The documentation for this protocol was generated from the following file: