BLIPProperties Class Reference

#import <BLIPProperties.h>

Inherited by BLIPMutableProperties, and BLIPPackedProperties.

List of all members.


Detailed Description

A key/value property store, like a set of MIME or RFC822 headers (but without the weird details).

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.


Member Function Documentation

+ (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.)


Property Documentation

- (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.


The documentation for this class was generated from the following files:
Generated on Tue May 27 22:56:33 2008 for MYNetwork:MooseyardNetworking by  doxygen 1.5.4