C# 클래스 Papercut.Smtp.Mime.MimeReader

This class is responsible for parsing a string array of lines containing a MIME message.
파일 보기 프로젝트 열기: wiggle/papercut-web 1 사용 예제들

공개 메소드들

메소드 설명
CreateMimeEntity ( ) : MimeEntity

Creates the MIME entity.

GetContentType ( string contentType ) : ContentType

Gets the type of the content.

GetMediaMainType ( string mediaType ) : string

Gets the type of the media main.

GetMediaSubType ( string mediaType ) : string

Gets the type of the media sub.

GetMediaType ( string mediaType ) : string

Gets the type of the media.

GetTransferEncoding ( string transferEncoding ) : TransferEncoding

Gets the transfer encoding.

The transfer encoding determination follows the same rules as Peter Huber's article w/ the exception of not throwing exceptions when binary is provided as a transferEncoding. Instead it is left to the calling code to check for binary.

MimeReader ( IEnumerable lines ) : System

Initializes a new instance of the MimeReader class.

비공개 메소드들

메소드 설명
AddChildEntity ( MimeEntity entity, Queue lines ) : void

Adds the child entity.

GetBytes ( string content ) : byte[]

Gets a byte[] of content for the provided string.

MimeReader ( ) : System

Prevents a default instance of the MimeReader class from being created.

MimeReader ( MimeEntity entity, Queue lines ) : System

Initializes a new instance of the MimeReader class.

ParseBody ( ) : void

Parses the body.

ParseHeaders ( ) : int

Parse headers into _entity.Headers NameValueCollection.

ProcessHeaders ( ) : void

Processes mime specific headers.

SetDecodedContentStream ( ) : void

Sets the decoded content stream by decoding the EncodedMessage and writing it to the entity content stream.

메소드 상세

CreateMimeEntity() 공개 메소드

Creates the MIME entity.
public CreateMimeEntity ( ) : MimeEntity
리턴 MimeEntity

GetContentType() 공개 정적인 메소드

Gets the type of the content.
public static GetContentType ( string contentType ) : ContentType
contentType string /// Type of the content. ///
리턴 System.Net.Mime.ContentType

GetMediaMainType() 공개 정적인 메소드

Gets the type of the media main.
public static GetMediaMainType ( string mediaType ) : string
mediaType string /// Type of the media. ///
리턴 string

GetMediaSubType() 공개 정적인 메소드

Gets the type of the media sub.
public static GetMediaSubType ( string mediaType ) : string
mediaType string /// Type of the media. ///
리턴 string

GetMediaType() 공개 정적인 메소드

Gets the type of the media.
public static GetMediaType ( string mediaType ) : string
mediaType string /// Type of the media. ///
리턴 string

GetTransferEncoding() 공개 정적인 메소드

Gets the transfer encoding.
The transfer encoding determination follows the same rules as Peter Huber's article w/ the exception of not throwing exceptions when binary is provided as a transferEncoding. Instead it is left to the calling code to check for binary.
public static GetTransferEncoding ( string transferEncoding ) : TransferEncoding
transferEncoding string /// The transfer encoding. ///
리턴 TransferEncoding

MimeReader() 공개 메소드

Initializes a new instance of the MimeReader class.
public MimeReader ( IEnumerable lines ) : System
lines IEnumerable /// The lines. ///
리턴 System