|
Samond Classes Library 1.1.6-RELEASE build 132
|
File streams class. More...
#import <SCFileStream.h>
File streams class.
Class is a concrete subclass of SCStream with support of files operations.
Class was introduced in version 1.1.3.
Class declares the following properties:
| + (SCFileStream *) appendReadWriteStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Returns the opened for reading and writing the stream created by using the specified delegate object and path. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) appendReadWriteStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened for reading and writing the stream created by using the specified delegate object, path and error handling type. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) appendReadWriteStreamWithPath: | (NSString *) | path |
Returns the opened for reading and writing the stream created by using the specified path. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) appendReadWriteStreamWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened for reading and writing the stream created by using the specified path and error handling type. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) appendWriteOnlyStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Returns the opened for writing the stream created by using the specified delegate object and path. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) appendWriteOnlyStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened for writing the stream created by using the specified delegate object, path and error handling type. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) appendWriteOnlyStreamWithPath: | (NSString *) | path |
Returns the opened for writing the stream created by using the specified path. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) appendWriteOnlyStreamWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened for writing the stream created by using the specified path and error handling type. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) close |
Closes the receiver's file stream.
| - (BOOL) eof | [implementation] |
Determines end of stream flag.
Reimplemented from SCStream.
| - (id) init |
Initializes the stream using the default settings.
Reimplemented from SCStream.
| - (id) initAppendReadWriteWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Initializes and opens for reading and writing the stream using the specified delegate object and path. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initAppendReadWriteWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens for reading and writing the stream using the specified delegate object, path and error handling type. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initAppendReadWriteWithPath: | (NSString *) | path |
Initializes and opens for reading and writing the stream using the specified path. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initAppendReadWriteWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens for reading and writing the stream using the specified path and error handling type. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initAppendWriteOnlyWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Initializes and opens for writing the stream using the specified delegate object and path. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initAppendWriteOnlyWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens for writing the stream using the specified delegate object, path and error handling type. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initAppendWriteOnlyWithPath: | (NSString *) | path |
Initializes and opens for writing the stream using the specified path. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initAppendWriteOnlyWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens for writing the stream using the specified path and error handling type. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initReadOnlyWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Initializes and opens for reading the stream using the specified delegate object and stream path. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initReadOnlyWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens for reading the stream using the specified delegate object, stream path and error handling type. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initReadOnlyWithPath: | (NSString *) | path |
Initializes and opens for reading the stream using the specified stream path. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initReadOnlyWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens for reading the stream using the specified stream path and error handling type. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initReadWriteWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Initializes and opens for reading and writing the stream using the specified delegate object and stream path. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initReadWriteWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens for reading and writing the stream using the specified delegate object, stream path and error handling type. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initReadWriteWithPath: | (NSString *) | path |
Initializes and opens for reading and writing the stream using the specified stream path. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initReadWriteWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens for reading and writing the stream using the specified stream path and error handling type. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithDelegate: | (id<SCStreamDelegate>) | delegate |
Initializes the stream using the sp[ecified delegate object.
| - (id) initWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| mode: | (SCFileStreamOpenMode) | mode | |
Initializes and opens the stream using the specified delegate object, stream path and open mode.
| delegate | - delegate object |
| path | - stream file name |
| mode | - open mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| mode: | (SCFileStreamOpenMode) | mode | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens the stream using the specified delegate object, stream path, open mode and error handling type.
| delegate | - delegate object |
| path | - stream file name |
| mode | - open mode |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithPath: | (NSString *) | path | |
| mode: | (SCFileStreamOpenMode) | mode | |
Initializes and opens the stream using the specified stream path and open mode.
| path | - stream file name |
| mode | - open mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithPath: | (NSString *) | path | |
| mode: | (SCFileStreamOpenMode) | mode | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens the stream using the specified stream path, open mode and error handling type.
| path | - stream file name |
| mode | - open mode |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWriteOnlyWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Initializes and truncates stream to zero length or creates stream for writing using the specified delegate object and path. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWriteOnlyWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and truncates stream to zero length or creates stream for writing using the specified delegate object, path and error handling type. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWriteOnlyWithPath: | (NSString *) | path |
Initializes and truncates stream to zero length or creates stream for writing using the specified path. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWriteOnlyWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and truncates stream to zero length or creates stream for writing using the specified path and error handling type. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWriteReadWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Initializes and opens for reading and writing the stream using the specified delegate object and path. The file is created if it does not exist, otherwise it is truncated. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWriteReadWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens for reading and writing the stream using the specified delegate object, path and error handling type. The file is created if it does not exist, otherwise it is truncated. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWriteReadWithPath: | (NSString *) | path |
Initializes and opens for reading and writing the stream using the specified path. The file is created if it does not exist, otherwise it is truncated. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWriteReadWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Initializes and opens for reading and writing the stream using the specified path and error handling type. The file is created if it does not exist, otherwise it is truncated. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCLong) offset |
Returns the offset in bytes from the begin of the stream.
| SCSystemException | - system error detected |
| SCStreamException | - stream operation error detected |
| - (void) openAppendReadWriteWithPath: | (NSString *) | path |
Open for reading and writing the stream usinf the specified path. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openAppendReadWriteWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Open for reading and writing the stream usinf the specified path and error handling type. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openAppendWriteOnlyWithPath: | (NSString *) | path |
Open for writing the stream usinf the specified path. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openAppendWriteOnlyWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Open for writing the stream usinf the specified path and error handling type. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening seek operations.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCFileStreamOpenMode) openMode |
Returns a file stream open mode.
| - (void) openReadOnlyWithPath: | (NSString *) | path |
Open for reading the stream using the specified path. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openReadOnlyWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Open for reading the stream using the specified path and error handling type. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openReadWriteWithPath: | (NSString *) | path |
Open for reading and writing the stream using the specified path. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openReadWriteWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Open for reading and writing the stream using the specified path and error handling type. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openWithPath: | (NSString *) | path | |
| mode: | (SCFileStreamOpenMode) | mode | |
Opens the receiver's stream using the specified stream path and open mode.
| path | - stream file name |
| mode | - open mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openWithPath: | (NSString *) | path | |
| mode: | (SCFileStreamOpenMode) | mode | |
| handling: | (SCStreamErrorHandling) | handling | |
Opens the receiver's stream using the specified stream path, open mode and error handling type.
| path | - stream file name |
| mode | - open mode |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openWriteOnlyWithPath: | (NSString *) | path |
Truncates stream to zero length or creates stream for writing using the specified path. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openWriteOnlyWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Truncates stream to zero length or creates stream for writing using the specified path and error handling type. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openWriteReadWithPath: | (NSString *) | path |
Open for reading and writing the stream using the specified path. The file is created if it does not exist, otherwise it is truncated. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) openWriteReadWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Open for reading and writing the stream using the specified path and error handling type. The file is created if it does not exist, otherwise it is truncated. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) readOnlyStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Returns the opened for reading stream created by using the specified delegate object and stream path. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) readOnlyStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened for reading stream created by using the specified delegate object, stream path and error handling type. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) readOnlyStreamWithPath: | (NSString *) | path |
Returns the opened for reading stream created by using the specified stream path. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) readOnlyStreamWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened for reading stream created by using the specified stream path and error handling type. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (NSString *) readString | [implementation] |
Returns the string readed by using the UTF-8 encoding.
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reimplemented from SCStream.
| - (NSString *) readStringWithEncoding: | (NSStringEncoding) | encoding | [implementation] |
Returns the string readed by using the specified encoding.
| encoding | - string encoding |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reimplemented from SCStream.
| - (NSString *) readStringWithEncoding: | (NSStringEncoding) | encoding | |
| max: | (SCUInteger) | max | |
[implementation] |
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 from SCStream.
| - (NSString *) readStringWithMax: | (SCUInteger) | max | [implementation] |
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 from SCStream.
| + (SCFileStream *) readWriteStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Returns the opened for reading and writing stream created by using the specified delegate object and stream path. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) readWriteStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened for reading and writing stream created by using the specified delegate object, stream path and error handling type. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) readWriteStreamWithPath: | (NSString *) | path |
Returns the opened for reading and writing stream created by using the specified stream path. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) readWriteStreamWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened for reading and writing stream created by using the specified stream path and error handling type. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) rewind |
Sets the position to the begin of the file stream.
| SCStreamException | - stream not open error detected |
| - (void) setOffset: | (SCLong) | offset |
Sets the stream position to the specified offset from the begin of the stream.
| offset | - stream offset |
| SCSystemException | - system error detected |
| SCStreamException | - stream operation error detected |
| - (void) setOffset: | (SCLong) | offset | |
| whence: | (SCFileStreamOffsetWhence) | whence | |
Sets the stream position to the specified offset and whence.
| offset | - stream offset |
| whence | - offset whence |
| SCSystemException | - system error detected |
| SCStreamException | - stream operation error detected |
| + (SCFileStream *) stream |
Returns the stream created by using the default settings.
| + (SCFileStream *) streamWithDelegate: | (id<SCStreamDelegate>) | delegate |
Returns the stream created by using the specified delegate object.
| delegate | - delegate object |
| + (SCFileStream *) streamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| mode: | (SCFileStreamOpenMode) | mode | |
Returns the opened stream created by using the specified delegate object, stream path and open mode.
| delegate | - delegate object |
| path | - stream file name |
| mode | - open mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) streamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| mode: | (SCFileStreamOpenMode) | mode | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened stream created by using the specified delegate object, stream path, open mode and error handling type.
| delegate | - delegate object |
| path | - stream file name |
| mode | - open mode |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) streamWithPath: | (NSString *) | path | |
| mode: | (SCFileStreamOpenMode) | mode | |
Returns the opened stream created by using the specified stream path and open mode.
| path | - stream file name |
| mode | - open mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) streamWithPath: | (NSString *) | path | |
| mode: | (SCFileStreamOpenMode) | mode | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened stream created by using the specified stream path, open mode and error handling type.
| path | - stream file name |
| mode | - open mode |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) writeOnlyStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Returns the stream truncated to zero length or created for writing. Stream was created by using the specified delegate object and path. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) writeOnlyStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the stream truncated to zero length or created for writing. Stream was created by using the specified delegate object, path and error handling type. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) writeOnlyStreamWithPath: | (NSString *) | path |
Returns the stream truncated to zero length or created for writing. Stream was created by using the specified path. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) writeOnlyStreamWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the stream truncated to zero length or created for writing. Stream was created by using the specified path and error handling type. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) writeReadStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
Returns the opened for writing and reading stream created by usin the specified delegate object and path. The file is created if it does not exist, otherwise it is truncated. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) writeReadStreamWithDelegate: | (id<SCStreamDelegate>) | delegate | |
| path: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened for writing and reading stream created by usin the specified delegate object, path and error handling type. The file is created if it does not exist, otherwise it is truncated. The stream is positioned at the beginning of the file.
| delegate | - delegate object |
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) writeReadStreamWithPath: | (NSString *) | path |
Returns the opened for writing and reading stream created by usin the specified path. The file is created if it does not exist, otherwise it is truncated. The stream is positioned at the beginning of the file.
| path | - stream file name |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCFileStream *) writeReadStreamWithPath: | (NSString *) | path | |
| handling: | (SCStreamErrorHandling) | handling | |
Returns the opened for writing and reading stream created by usin the specified path and error handling type. The file is created if it does not exist, otherwise it is truncated. The stream is positioned at the beginning of the file.
| path | - stream file name |
| handling | - stream error handling mode |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) writeString: | (NSString *) | string | [implementation] |
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 from SCStream.
| - (void) writeString: | (NSString *) | string | |
| encoding: | (NSStringEncoding) | encoding | |
[implementation] |
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 from SCStream.
1.7.3