Méthode | Description | |
---|---|---|
CreateMimeEntity ( ) : |
Creates the MIME entity.
|
|
GetContentDisposition ( string contentDisposition ) : |
Get the content disposition parsed from the specified string
|
|
GetContentType ( string contentType, bool throwOnInvalidContentType = false ) : |
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 ( byte rawBytes, bool throwOnInvalidContentType = false ) : System |
Initializes a new instance of the MimeReader class.
|
|
SplitByteArrayWithCrLf ( byte byteArray ) : byte[][] |
Splits a byte array using CrLf as the line delimiter.
|
Méthode | Description | |
---|---|---|
AddChildEntity ( |
Adds the child entity.
|
|
AppendMessageContent ( ) : void |
Append the current queued line to the entity encoded / decoded message buffers
|
|
ConvertBytesToStringWithDefaultEncoding ( byte line ) : string |
Converts bytes using the default encoding
|
|
DecodePartIfNeeded ( |
Decodes the specified part if needed.
|
|
Dequeue ( ) : byte[] |
Consumes a line and add it to the raw content of this mime part.
|
|
FixUnquotedEncodedString ( string value ) : string |
Ensure that a value representing a encoded value is surrounded with double quotes
|
|
GetBytes ( string content ) : byte[] |
Gets a byte[] of content for the provided string.
|
|
HasReachParentBoundary ( string line ) : bool |
Returns whether the current line matches the parent boundary
|
|
HasReachedEndOfPart ( ) : bool |
Returns whether the current line is the end of a part.
|
|
IsInvalidDateTime ( string dateValueString ) : bool |
Returns whether the specified string represents a valid date time.
|
|
MimeReader ( ) : System |
Static Ctor
|
|
MimeReader ( |
Initializes a new instance of the MimeReader class.
|
|
MimeReader ( bool throwOnInvalidContentType ) : 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.
|
|
ReadPart ( ) : Queue |
Reads all the lines of the current part.
|
|
RemoveIfInvalidDateTime ( string contentDisposition, string dateTokenName ) : string |
Parse for the received token, and if found, try to parse the date. If it fails, remove the whole token from the line
|
|
StripInvalidDateTime ( string contentDisposition ) : string |
Remove any invalid date. Some client, like NOVEL_GROUPWISE store invalid date, such as Thu, 19 sep 2012. In 2012, September 19 was a wednesday
|
public static GetContentDisposition ( string contentDisposition ) : |
||
contentDisposition | string | |
Résultat |
public static GetContentType ( string contentType, bool throwOnInvalidContentType = false ) : |
||
contentType | string | Type of the content. |
throwOnInvalidContentType | bool | |
Résultat |
public static GetMediaMainType ( string mediaType ) : string | ||
mediaType | string | Type of the media. |
Résultat | string |
public static GetMediaSubType ( string mediaType ) : string | ||
mediaType | string | Type of the media. |
Résultat | string |
public static GetMediaType ( string mediaType ) : string | ||
mediaType | string | Type of the media. |
Résultat | string |
public static GetTransferEncoding ( string transferEncoding ) : TransferEncoding | ||
transferEncoding | string | The transfer encoding. |
Résultat | TransferEncoding |
public MimeReader ( byte rawBytes, bool throwOnInvalidContentType = false ) : System | ||
rawBytes | byte | The raw bytes of the message. |
throwOnInvalidContentType | bool | Determine if an invalid content type should raise an exception. |
Résultat | System |
public static SplitByteArrayWithCrLf ( byte byteArray ) : byte[][] | ||
byteArray | byte | |
Résultat | byte[][] |