C# Class RemObjects.InternetPack.Messages.Mime.Header.HeaderExtractor

Utility class that divides a message into a body and a header.
The header is then parsed to a strongly typed MessageHeader object.
Datei anzeigen Open project: remobjects/internetpack

Public Methods

Method Description
ExtractHeadersAndBody ( Byte fullRawMessage, MessageHeader &headers, Byte &body ) : void

Extract the header part and body part of a message.
The headers are then parsed to a strongly typed MessageHeader object.

Private Methods

Method Description
ExtractHeaders ( String messageContent ) : NameValueCollection

Method that takes a full message and extract the headers from it.

FindHeaderEndPosition ( Byte messageContent ) : Int32

Find the end of the header section in a Byte array.
The headers have ended when a blank line is found

IsMoreLinesInHeaderValue ( TextReader reader ) : System.Boolean

Check if the next line is part of the current header value we are parsing by peeking on the next character of the TextReader.
This should only be called while parsing headers.

Method Details

ExtractHeadersAndBody() public static method

Extract the header part and body part of a message.
The headers are then parsed to a strongly typed MessageHeader object.
If is
public static ExtractHeadersAndBody ( Byte fullRawMessage, MessageHeader &headers, Byte &body ) : void
fullRawMessage Byte The full message in bytes where header and body needs to be extracted from
headers MessageHeader The extracted header parts of the message
body Byte The body part of the message
return void