|
Samond Classes Library 1.1.6-RELEASE build 132
|
Abstract class of streams hierarchy. More...
#import <SCStream.h>
Abstract class of streams hierarchy.
Class declares methods for support stream operations.
Class was introduced in version 1.1.3.
Class declares the following properties:
| - (id< SCStreamDelegate >) delegate |
Returns the stream events delegate object.
| - (BOOL) eof |
Determines end of stream flag.
Reimplemented in SCStandardInputStream, and SCFileStream.
| - (SCStreamErrorHandling) errorHandling |
Returns the error handling mode.
| - (id) init |
Initializes the receiver's class instace using the default settings.
Reimplemented in SCFileStream, SCStandardErrorStream, SCStandardInputStream, and SCStandardOutputStream.
| - (BOOL) isOpen |
Returns the stream opening flag.
| - (BOOL) isReadable |
Determines the ability to read from the stream.
This abstract method must be redeclared in all child classes.
| - (BOOL) isReadOnly |
Determines the stream is operating in read only mode.
| - (BOOL) isReadWrite |
Determines the stream is operating in both read and write mods.
| - (BOOL) isWritable |
Determines the ability to write into the stream.
This abstract method must be redeclared in all child classes.
| - (BOOL) isWriteOnly |
Determines the stream is operating in write only mode.
| - (id) object |
Returns the currently loaded object.
| - (BOOL) readBool |
Returns the boolean variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCByte) readByte |
Returns the 8-bit integer variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reads the specified bytes count into the specified buffer.
This abstract method must be redeclared in all child classes.
| count | - count of bytes for reading from stream to buffer |
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (char) readChar |
Returns the char variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (const char *) readCharString |
Returns the character string readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCDouble) readDouble |
Returns the double variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCFloat) readFloat |
Returns the float variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCInteger) readInteger |
Returns the 32-bit integer variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCLong) readLong |
Returns the 64-bit integer variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id< SCStreamProtocol >) readObject |
Initializes the class instance from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCShort) readShort |
Returns the 16-bit integer variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (NSString *) readString |
Returns the string readed by using the UTF-8 encoding.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reimplemented in SCStandardInputStream, and SCFileStream.
| - (NSString *) readStringWithEncoding: | (NSStringEncoding) | encoding |
Returns the string readed by using the specified encoding.
| encoding | - string encoding |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reimplemented in SCStandardInputStream, and SCFileStream.
| - (NSString *) readStringWithEncoding: | (NSStringEncoding) | encoding | |
| max: | (SCUInteger) | max | |
Returns the string with the specified max length and readed by using the specified encoding.
| encoding | - string encoding |
| max | - max length |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reimplemented in SCStandardInputStream, and SCFileStream.
| - (NSString *) readStringWithMax: | (SCUInteger) | max |
Returns the string with the specified max length and readed by using the UTF-8 encoding.
| max | - max length |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reimplemented in SCStandardInputStream, and SCFileStream.
| - (SCUSize) readToBool: | (BOOL *) | buffer |
Reads the boolean value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reads the signed 8-bit integer value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCUSize) readToChar: | (char *) | buffer |
Reads the char value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reads the char string into the specified buffer.
| buffer | - pointer to receiving data buffer |
| max | - max bytes of reading |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reads the double precision float value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reads the single precision float value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reads the signed 32-bit integer value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reads the signed 64-bit integer value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reads the signed 16-bit integer value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reads the unsigned 8-bit integer value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCUSize) readToUInteger: | (SCUInteger *) | buffer |
Reads the unsigned 32-bit integer value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reads the unsigned 64-bit integer value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCUSize) readToUnichar: | (unichar *) | buffer |
Reads the unichar value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reads the unsigned 16-bit integer value into the specified buffer.
| buffer | - pointer to receiving data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCUByte) readUByte |
Returns the 8-bit unsigned integer variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCUInteger) readUInteger |
Returns the unsigned 32-bit integer variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCULong) readULong |
Returns the 64-bit unsigned integer variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (unichar) readUnichar |
Returns the unichar variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCUShort) readUShort |
Returns the 16-bit unsigned integer variable readed from the receiver's stream.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) setDelegate: | (id<SCStreamDelegate>) | delegate |
Sets the stream events delegate object.
| delegate | - Delegate object |
| - (void) setErrorHandling: | (SCStreamErrorHandling) | mode |
Sets the error handling mode.
| mode | - error handling mode |
| - (SCStreamStatus) status |
Returns the stream status.
| - (SCStreamException *) streamException |
Returns the last detected stream exception.
| - (NSString *) streamName |
Returns the stream name.
| - (SCSystemException *) systemException |
Returns the last detected system exception.
| - (void) writeBool: | (BOOL) | variable |
Writes into the receiver's stream the specified boolean variable.
| variable | - stored boolean variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeByte: | (SCByte) | variable |
Writes into the receiver's stream the specified 8-bit integer variable.
| variable | - stored 8-bit integer variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Writes to the receiver's stream the specified bytes count from the specified buffer.
This abstract method must be reimplemented in all child classes.
| count | - count of bytes for writing from buffer to stream |
| buffer | - pointer to sending data buffer |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeChar: | (char) | variable |
Writes into the receiver's stream the specified char variable.
| variable | - stored char variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeCharString: | (const char *) | variable |
Writes into the receiver's stream the specified character string.
| variable | - stored character string |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeDouble: | (SCDouble) | variable |
Writes into the receiver's stream the specified double variable.
| variable | - stored double variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeFloat: | (SCFloat) | variable |
Writes into the receiver's stream the specified float variable.
| variable | - stored float variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeInteger: | (SCInteger) | variable |
Writes into the receiver's stream the specified 32-bit integer variable.
| variable | - stored 32-bit integer variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeLong: | (SCLong) | variable |
Writes into the receiver's stream the specified 64-bit integer variable.
| variable | - stored 64-bit integer variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeObject: | (id<SCStreamProtocol>) | object |
Writes the specified class instance to the receiver's stream.
| object | - class instance for writing to receiver's stream |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeShort: | (SCShort) | variable |
Writes into the receiver's stream the specified 16-bit integer variable.
| variable | - stored 16-bit integer variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeString: | (NSString *) | string |
Writes into the stream the specified UTF-8 text string with end of line character.
| string | - writed string |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reimplemented in SCStandardErrorStream, SCStandardOutputStream, and SCFileStream.
| - (void) writeString: | (NSString *) | string | |
| encoding: | (NSStringEncoding) | encoding | |
Writes into the stream the specified text string with the specified encoding end of line character.
| string | - writed string |
| encoding | - string encoding |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reimplemented in SCStandardErrorStream, SCStandardOutputStream, and SCFileStream.
| - (void) writeUByte: | (SCUByte) | variable |
Writes into the receiver's stream the specified unsigned 8-bit integer variable.
| variable | - stored 8-bit unsigned integer variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeUInteger: | (SCUInteger) | variable |
Writes into the receiver's stream the specified unsigned 32-bit integer variable.
| variable | - stored unsigned 32-bit integer variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeULong: | (SCULong) | variable |
Writes into the receiver's stream the specified unsigned 64-bit integer variable.
| variable | - stored 64-bit unsigned integer variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeUnichar: | (unichar) | variable |
Writes into the receiver's stream the specified unichar variable.
| variable | - stored unichar variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeUShort: | (SCUShort) | variable |
Writes into the receiver's stream the specified unsigned 16-bit integer variable.
| variable | - stored 16-bit unsigned integer variable |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
1.7.3