|
Samond Classes Library 1.1.6-RELEASE build 132
|
Text file class. More...
#import <SCTextFile.h>
Text file class.
Class implements the text file.
Class was introduced in version 1.1.4.
Class declares the following properties:
| - (BOOL) addTextFromStream: | (SCStream *) | stream |
Adds into the receiving text file strings from the specified stream.
| stream | - input stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) addTextWithPath: | (NSString *) | path |
Adds into the receiving text file strings from the file with the specified path.
| path | - input file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) appendTextInRange: | (NSRange) | range | |
| withPath: | (NSString *) | path | |
Appends the text in the specified range to the end of file with the specified path.
| range | - saved text range |
| path | - output file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) appendToFileWithPath: | (NSString *) | path |
Writes the receiving text file content to the end of the file with the specified path.
| path | - destination file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (void) copyFromTextFile: | (SCTextFile *) | text |
Replaces the content and settings of the receiving text by using the specified existing text.
| text | - existing text |
| SCTextException | - text error detected |
| - (BOOL) cutAndAppendTextInRange: | (NSRange) | range | |
| withPath: | (NSString *) | path | |
Cuts the text in the specified range and append it to the end of the file with the specified path.
| range | - cutted text range |
| path | - output file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) cutTextInRange: | (NSRange) | range | |
| toStream: | (SCStream *) | stream | |
Cuts the text in the specified range and save it to the specified stream.
| range | - cutted text range |
| stream | - output stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) cutTextInRange: | (NSRange) | range | |
| withPath: | (NSString *) | path | |
Cuts the text in the specified range and save it to the file with the specified path.
| range | - cutted text range |
| path | - output file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initFromStream: | (SCStream *) | stream |
Initializes a text file using the specified input stream.
| stream | - input stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initFromStream: | (SCStream *) | stream | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Initializes a text file using the specified input stream and delegate object.
| stream | - input stream |
| delegate | - delegate object |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithName: | (NSString *) | name | |
| path: | (NSString *) | path | |
Initializes a text file using the specified text file name and file path.
| name | - text file name |
| path | - text file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithName: | (NSString *) | name | |
| path: | (NSString *) | path | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Initializes a text file using the specified text file name, file path and delegate object.
| name | - text file name |
| path | - text file path |
| delegate | - delegate object |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithName: | (NSString *) | name | |
| stream: | (SCStream *) | stream | |
Initializes a text file using the specified text file name and input stream.
| name | - text file name |
| stream | - input stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithName: | (NSString *) | name | |
| stream: | (SCStream *) | stream | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Initializes a text file using the specified text file name, input stream and delegate object.
| name | - text file name |
| stream | - input stream |
| delegate | - delegate object |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithPath: | (NSString *) | path |
Initializes a text file using the specified file path.
| path | - text file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithPath: | (NSString *) | path | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Initializes a text file using the specified file path and delegate object.
| path | - text file path |
| delegate | - delegate object |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithTextFile: | (SCTextFile *) | file |
Initializes a text file using the speified existing text file.
| file | - existing text file |
| SCTextException | - text file error detected |
Loads the text from the specified stream and inserts it into the receiving text file at the specified index.
| stream | - input stream |
| index | - destination index |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) insertTextWithPath: | (NSString *) | path | |
| atIndex: | (SCIndex) | index | |
Loads the text from file with the specified path and inserts it into the receiving text file at the specified index.
| path | - input file path |
| index | - destination index |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) load |
Loads the content of the text file.
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) loadFromStream: | (SCStream *) | stream |
Loads the content of the specified stream into the receiving text file.
| stream | - input stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) loadWithPath: | (NSString *) | path |
Loads the content of the file with the specified path into the receiving text file.
| path | - loaded file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (NSString *) path |
Returns path of the receiving text file.
| - (BOOL) replaceTextInRange: | (NSRange) | range | |
| withTextFromStream: | (SCStream *) | stream | |
Replaces the text in the specified range with text loaded from the specified stream.
| range | - replaced text range |
| stream | - input stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) replaceTextInRange: | (NSRange) | range | |
| withTextWithPath: | (NSString *) | path | |
Replaces the text in the specified range with text loaded from the file with the specified path.
| range | - replaced text range |
| path | - input file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) reset |
Discards all receiving text changes and reload content of the file.
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) save |
Loads the content of the receiving text file.
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveTextInRange: | (NSRange) | range | |
| toStream: | (SCStream *) | stream | |
Saves the text in the specified range to the specified stream.
| range | - saved text range |
| stream | - output stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveTextInRange: | (NSRange) | range | |
| withPath: | (NSString *) | path | |
Saves the text in the specified range to the file with the specified path.
| range | - saved text range |
| path | - output file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveTextWithoutSubstring: | (NSString *) | substring | |
| toStream: | (SCStream *) | stream | |
Saves into the specified stream strings from the receiving text file which not contains the specified substring.
| substring | - required substring |
| stream | - output stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveTextWithoutSubstring: | (NSString *) | substring | |
| toStream: | (SCStream *) | stream | |
| caseInsensitive: | (BOOL) | value | |
Saves into the specified stream strings from the receiving text file which not contains the specified substring. Case insensitively depends on the value of the specified flag.
| substring | - required substring |
| stream | - output stream |
| value | - YES for case insensitive comparison operations, otherwise NO |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveTextWithoutSubstring: | (NSString *) | substring | |
| withPath: | (NSString *) | path | |
Saves into the file with the specified path strings from the receiving text file which not contains the specified substring.
| substring | - required substring |
| path | - output file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveTextWithoutSubstring: | (NSString *) | substring | |
| withPath: | (NSString *) | path | |
| caseInsensitive: | (BOOL) | value | |
Saves into the file with the specified path strings from the receiving text file which not contains the specified substring. Case insensitively depends on the value of the specified flag.
| substring | - required substring |
| path | - output file path |
| value | - YES for case insensitive comparison operations, otherwise NO |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveTextWithSubstring: | (NSString *) | substring | |
| toStream: | (SCStream *) | stream | |
Saves into the specified stream strings from the receiving text file which contains the specified substring.
| substring | - required substring |
| stream | - output stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveTextWithSubstring: | (NSString *) | substring | |
| toStream: | (SCStream *) | stream | |
| caseInsensitive: | (BOOL) | value | |
Saves into the specified stream strings from the receiving text file which contains the specified substring. Case insensitively depends on the value of the specified flag.
| substring | - required substring |
| stream | - output stream |
| value | - YES for case insensitive comparison operations, otherwise NO |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveTextWithSubstring: | (NSString *) | substring | |
| withPath: | (NSString *) | path | |
Saves into the file with the specified path strings from the receiving text file which contains the specified substring.
| substring | - required substring |
| path | - output file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveTextWithSubstring: | (NSString *) | substring | |
| withPath: | (NSString *) | path | |
| caseInsensitive: | (BOOL) | value | |
Saves into the file with the specified path strings from the receiving text file which contains the specified substring. Case insensitively depends on the value of the specified flag.
| substring | - required substring |
| path | - output file path |
| value | - YES for case insensitive comparison operations, otherwise NO |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveToStream: | (SCStream *) | stream |
Saves the content of the receiving instance to the specified output stream.
| stream | - output stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) saveWithPath: | (NSString *) | path |
Saves the teceiving text file content into the file with specified path.
| path | - destination file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCText *) text |
Returns the text with the copy of all receiving text file strings.
Reimplemented from SCText.
| + (SCTextFile *) textFile |
Returns a text file created by using the default settings.
| + (SCTextFile *) textFileFromStream: | (SCStream *) | stream |
Returns a text file created by using the specified input stream.
| stream | - input stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextFile *) textFileFromStream: | (SCStream *) | stream | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Returns a text file created by using the specified input stream and delegate object.
| stream | - input stream |
| delegate | - delegate object |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextFile *) textFileWithCapacity: | (SCULong) | capacity |
Returns a text file created by using the specified text file capacity.
| capacity | - text file capacity |
| + (SCTextFile *) textFileWithCoder: | (NSCoder *) | coder |
Returns a text file created by using the specified coder.
| coder | - source coder |
| + (SCTextFile *) textFileWithCollection: | (id) | collection |
Returns a text file created by using the specified existing collection.
| collection | - existing collection |
| SCTextException | - text file error detected |
| + (SCTextFile *) textFileWithContentsOfSerializedFile: | (NSString *) | path |
Returns a text file created by using the contents of serialized file with the specified path.
| path | - source serialized file path |
| + (SCTextFile *) textFileWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a text file created by using the specified dictionary.
| dictionary | - source dictionary |
| + (SCTextFile *) textFileWithDataDictionaryFromFile: | (NSString *) | path |
Returns a text file created by using the dictionary from the specified file.
| path | - source dictionary file path |
| + (SCTextFile *) textFileWithDelegate: | (id<SCTextDelegate>) | delegate |
Returns a text file created by using the specified delegate object.
| delegate | - delegate object |
| + (SCTextFile *) textFileWithFileStream: | (NSString *) | path |
Returns a text file created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextFile *) textFileWithName: | (NSString *) | name |
Returns a text file created by using the specified text file name.
| name | - text file name |
| + (SCTextFile *) textFileWithName: | (NSString *) | name | |
| capacity: | (SCULong) | capacity | |
Returns a text file created by using the specified text file name and capacity.
| name | - text file name |
| capacity | - text file capacity |
| + (SCTextFile *) textFileWithName: | (NSString *) | name | |
| capacity: | (SCULong) | capacity | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Returns a text file created by using the specified text file name, capacity and delegate object.
| name | - text file name |
| capacity | - text file capacity |
| delegate | - delegate object |
| + (SCTextFile *) textFileWithName: | (NSString *) | name | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Returns a text file created by using the specified text file name and delegate object.
| name | - text file name |
| delegate | - delegate object |
| + (SCTextFile *) textFileWithName: | (NSString *) | name | |
| path: | (NSString *) | path | |
Returns a text file created by using the specified text file name and file path.
| name | - text file name |
| path | - text file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextFile *) textFileWithName: | (NSString *) | name | |
| path: | (NSString *) | path | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Returns a text file created by using the specified text file name, file path and delegate object.
| name | - text file name |
| path | - text file path |
| delegate | - delegate object |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextFile *) textFileWithName: | (NSString *) | name | |
| stream: | (SCStream *) | stream | |
Returns a text file created by using the specified text file name and input stream.
| name | - text file name |
| stream | - input stream |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextFile *) textFileWithName: | (NSString *) | name | |
| stream: | (SCStream *) | stream | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Returns a text file created by using the specified text file name, input stream and delegate object.
| name | - text file name |
| stream | - input stream |
| delegate | - delegate object |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextFile *) textFileWithPath: | (NSString *) | path |
Returns a text file created by using the specified file path.
| path | - text file path |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextFile *) textFileWithPath: | (NSString *) | path | |
| delegate: | (id<SCTextDelegate>) | delegate | |
Returns a text file created by using the specified file path and delegate object.
| path | - text file path |
| delegate | - delegate object |
| SCTextException | - text file error detected |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextFile *) textFileWithStream: | (SCStream *) | stream |
Returns a text file created from the specified stream.
| stream | - stream for reading text |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (SCTextFile *) textFileWithString: | (NSString *) | string |
Returns a text file created by using the specified existing string.
| string | - existing string |
| SCTextException | - text file error detected |
| + (SCTextFile *) textFileWithStrings: | (NSString *) | string | |
| , | ... | ||
Returns the text cfile reated by using the specified nil terminated list of existing strings.
| string | - first string |
| ... | - other strings |
| SCTextException | - text file error detected |
| + (SCTextFile *) textFileWithText: | (SCText *) | text |
Returns a text file created by using the specified existing text.
| text | - existing text |
| SCTextException | - text file error detected |
| + (SCTextFile *) textFileWithTextFile: | (SCTextFile *) | file |
Returns a text file created by using the specified existing text file.
| file | - existing text file |
| SCTextException | - text file error detected |
1.7.3