Samond Classes Library 1.2.6-STABLE build 219
List of all members
NSData(SCData) Category Reference

Standard class NSData functionality extending category. More...

#import <NSData+SCData.h>

Creating Data Objects

(instancetype) + dataWithCoder:
 
(instancetype) + dataWithContentsOfSerializedFile:
 
(instancetype) + dataWithDataDictionary:
 
(instancetype) + dataWithDataDictionaryFromFile:
 
(instancetype) + dataWithStream:
 
(instancetype) + dataWithFileStream:
 
(instancetype) + dataWithContentsOfURLString:
 

Detailed Description

Standard class NSData functionality extending category.

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

Implements the additional methods for add into the standard class NSData the enhanced functionality.

Method Documentation

+ (instancetype) dataWithCoder: (NSCoder *)  coder

Returns a class instance created by using the data from the specified coder.

Parameters
coder- the source coder
Returns
A created class instance
+ (instancetype) dataWithContentsOfSerializedFile: (NSString *)  path

Returns a class instance created by using the data from the serialized file with the specified path.

Parameters
path- the path to the serialized file
Returns
A created class instance
+ (instancetype) dataWithContentsOfURLString: (NSString *)  urlString

Returns a class instance created by using the data from the URL with the specified string.

Parameters
urlString- the string of the source URL
Returns
A created class instance
+ (instancetype) dataWithDataDictionary: (NSDictionary *)  dictionary

Returns a class instance created by using the data from the specified data dictionary.

Parameters
dictionary- the source data dictionary
Returns
A created class instance
+ (instancetype) dataWithDataDictionaryFromFile: (NSString *)  path

Returns a class instance created by using the data from the dictionary file with the specified path.

Parameters
path- the path to the source dictionary file
Returns
A created class instance
+ (instancetype) dataWithFileStream: (NSString *)  path

Returns a class instance created by using the data from the file stream with the specified path.

Parameters
path- the path to the source file stream
Returns
A created class instance
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected
+ (instancetype) dataWithStream: (SCStream *)  stream

Returns a class instance created by using the data from the specified stream.

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

The documentation for this category was generated from the following files: