[Previous] [Up]

GSMimeParser

Authors

Richard Frith-Macdonald

Version: 0.1

Date: 26 October, 2000

GSMimeParser

GSMimeParser

Declared in: Foundation/GSMime.h

Inherits from: NSObject

Conforms to: NSObject


This class provides support for parsing MIME messages into GSMimeDocument objects. It is imtimately related to the GSMimeDocument class and relys on that class for aspects of the parsing operation.

Instance Variables

Methods


Class Methods

mimeParser

+ (GSMimeParser*) mimeParser;
Create a parser.

Instances Methods

parse:

- (BOOL) parse: (NSData*)rawData;
This method is called repeatedly to pass raw mime data into the parser. It should be called with a nil argument at the end of the data - to inform the parser that it has been given all the available information.

document

- (GSMimeDocument*) document;
Returns the object into which raw mime data is being parsed.

parsingHeaders

- (BOOL) parsingHeaders;
Returns YES if the parser is expecting to read mime headers, Returns NO is the parser has already been passed all the data containing headers, and is now waiting for the body of trhe mime message (or has been passed all data).