C# Class anmar.SharpMimeTools.SharpMimeHeader

rfc 2822 header of a rfc 2045 entity
Inheritance: IEnumerable
Datei anzeigen Open project: jeske/StepsDB-alpha Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Contains ( System name ) : bool

GetEnumerator ( ) : System.Collections.IEnumerator

Returns an enumerator that can iterate through the header fields

GetHeaderField ( System name, System defaultvalue, bool uncomment, bool rfc2047decode ) : System.String

Returns the requested header field body.

SharpMimeHeader ( System message ) : System

Initializes a new instance of the anmar.SharpMimeTools.SharpMimeHeader class from a System.IO.Stream

SharpMimeHeader ( System message, long startpoint ) : System

Initializes a new instance of the anmar.SharpMimeTools.SharpMimeHeader class from a System.IO.Stream starting from the specified point

this ( System name ) : System.String

Gets header fields

Field names is case insentitive

Private Methods

Method Description
SharpMimeHeader ( anmar message ) : System
SharpMimeHeader ( anmar message, long startpoint ) : System
getProperty ( System name ) : System.String
parse ( ) : bool

Method Details

Close() public method

public Close ( ) : void
return void

Contains() public method

public Contains ( System name ) : bool
name System
return bool

GetEnumerator() public method

Returns an enumerator that can iterate through the header fields
public GetEnumerator ( ) : System.Collections.IEnumerator
return System.Collections.IEnumerator

GetHeaderField() public method

Returns the requested header field body.
public GetHeaderField ( System name, System defaultvalue, bool uncomment, bool rfc2047decode ) : System.String
name System Header field name
defaultvalue System Value to return when the requested field is not present
uncomment bool true to uncomment using ; false to return the value unchanged.
rfc2047decode bool true to decode ; false to return the value unchanged.
return System.String

SharpMimeHeader() public method

Initializes a new instance of the anmar.SharpMimeTools.SharpMimeHeader class from a System.IO.Stream
public SharpMimeHeader ( System message ) : System
message System to read headers from
return System

SharpMimeHeader() public method

Initializes a new instance of the anmar.SharpMimeTools.SharpMimeHeader class from a System.IO.Stream starting from the specified point
public SharpMimeHeader ( System message, long startpoint ) : System
message System the to read headers from
startpoint long initial point of the where the headers start
return System

this() public method

Gets header fields
Field names is case insentitive
public this ( System name ) : System.String
name System field name
return System.String