NSData(SPNSExtensions) Category Reference
Declared in | SPNSExtensions.h |
Tasks
-
+ dataWithBase64EncodedString:
Creates an NSData object by parsing a Base64 encoded String.
-
– initWithBase64EncodedString:
Creates an NSData object by parsing a Base64 encoded String.
-
– base64Encoding
Returns the Base64 representation of the NSData object.
-
– base64EncodingWithLineLength:
Returns the Base64 representation of the NSData object, separated into lines.
-
+ dataWithUncompressedContentsOfFile:
If the file has the extension ‘.gz’, returns the uncompressed contents of the GZip-compressed file; otherwise, returns the unprocessed contents.
-
– gzipDeflate
Gzip-compresses the contents of this NSData object into a new NSData instance.
-
– gzipInflate
Uncompresses the GZip-compressed contents of this NSData object into a new NSData instance.
Class Methods
dataWithBase64EncodedString:
Creates an NSData object by parsing a Base64 encoded String.
+ (instancetype)dataWithBase64EncodedString:(NSString *)string
Discussion
Creates an NSData object by parsing a Base64 encoded String.
Declared In
SPNSExtensions.h
dataWithUncompressedContentsOfFile:
If the file has the extension ‘.gz’, returns the uncompressed contents of the GZip-compressed file; otherwise, returns the unprocessed contents.
+ (instancetype)dataWithUncompressedContentsOfFile:(NSString *)file
Discussion
If the file has the extension ‘.gz’, returns the uncompressed contents of the GZip-compressed file; otherwise, returns the unprocessed contents.
Declared In
SPNSExtensions.h
Instance Methods
base64Encoding
Returns the Base64 representation of the NSData object.
- (NSString *)base64Encoding
Discussion
Returns the Base64 representation of the NSData object.
Declared In
SPNSExtensions.h
base64EncodingWithLineLength:
Returns the Base64 representation of the NSData object, separated into lines.
- (NSString *)base64EncodingWithLineLength:(uint)lineLength
Discussion
Returns the Base64 representation of the NSData object, separated into lines.
Declared In
SPNSExtensions.h
gzipDeflate
Gzip-compresses the contents of this NSData object into a new NSData instance.
- (instancetype)gzipDeflate
Discussion
Gzip-compresses the contents of this NSData object into a new NSData instance.
Declared In
SPNSExtensions.h