#import <HRFormatterProtocol.h>
Inherited by HRFormatJSON, and HRFormatXML.
Static Public Member Functions | |
| (NSString *) | + extension |
| (NSString *) | + mimeType |
| (id) | + decode:error: |
| (NSString *) | + encode:error: |
| + (id) decode: | (NSData *) | data | ||
| error: | (NSError **) | error | ||
Takes the format and turns it into the appropriate Obj-C data type.
| data | Raw data to be decoded. | |
| error | Returns any errors that happened while decoding. |
| + (NSString *) encode: | (id) | object | ||
| error: | (NSError **) | error | ||
Takes an Obj-C data type and turns it into the proper format.
| object | The Obj-C object to be encoded by the formatter. | |
| error | Returns any errors that happened while encoding. |
| + (NSString *) extension |
The file extension. Example: json, xml, plist, n3, etc.
| + (NSString *) mimeType |
The mime-type represented by this formatter