#import <BLIPProperties.h>
Inherited by BLIPMutableProperties, and BLIPPackedProperties.
It can be written to or read from a block of data; the data is binary, not the textual format that MIME uses.
Public Member Functions | |
| (NSString *) | - valueOfProperty: |
| Property value lookup. | |
Static Public Member Functions | |
| (BLIPProperties *) | + propertiesWithEncodedData:usedLength: |
| Parse properties from a block of data. | |
| (BLIPProperties *) | + properties |
| Returns an empty autoreleased instance. | |
Properties | |
| readonly NSDictionary * | allProperties |
| Returns all the properties/values as a dictionary. | |
| readonly NSUInteger | count |
| The number of properties. | |
| readonly NSData * | encodedData |
| The raw data representation of the properties. | |
| + (BLIPProperties *) propertiesWithEncodedData: | (NSData*) | data | ||
| usedLength: | (ssize_t*) | usedLength | ||
Parse properties from a block of data.
On success, returns a Properties object and sets *usedLength to the number of bytes of data consumed. If the data doesn't contain the complete properties, returns nil and sets *usedLength to zero. If the properties are syntactically invalid, returns nil and sets *usedLength to a negative number.
| + (BLIPProperties *) properties |
Returns an empty autoreleased instance.
| - (NSString *) valueOfProperty: | (NSString*) | prop |
Property value lookup.
(Case-sensitive, like NSDictionary, but unlike RFC822.)
| - (NSDictionary *) allProperties |
Returns all the properties/values as a dictionary.
| - (NSUInteger) count |
The number of properties.
| - (NSData *) encodedData |
The raw data representation of the properties.
1.5.4