C# 클래스 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.
파일 보기 프로젝트 열기: remobjects/internetpack

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

ExtractHeadersAndBody() 공개 정적인 메소드

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
리턴 void