C# Class NContrib.MimeHelper

Mostrar archivo Open project: veracross/ncontrib

Public Properties

Property Type Description
DefaultMimeType string
MimeSampleSize int
UrlmonOverrides string>.Dictionary

Public Methods

Method Description
GetMimeFromBytes ( string path ) : string

Use MIME magic to find the mime of the file at this path

GetMimeFromBytes ( this data ) : string

Use MIME magic to find the MIME type of this data block. This should be the first 256 bytes of a file

GetMimeFromFileName ( string filename ) : string
GetMimeFromFileName ( this fileInfo ) : string

Private Methods

Method Description
FindMimeFromData ( uint pBC, [ pwzUrl, [ pBuffer, uint cbSize, [ pwzMimeProposed, uint dwMimeFlags, uint &ppwzMimeOut, uint dwReserverd ) : uint
MimeHelper ( ) : System

Method Details

GetMimeFromBytes() public static method

Use MIME magic to find the mime of the file at this path
public static GetMimeFromBytes ( string path ) : string
path string
return string

GetMimeFromBytes() public static method

Use MIME magic to find the MIME type of this data block. This should be the first 256 bytes of a file
public static GetMimeFromBytes ( this data ) : string
data this
return string

GetMimeFromFileName() public static method

public static GetMimeFromFileName ( string filename ) : string
filename string
return string

GetMimeFromFileName() public static method

public static GetMimeFromFileName ( this fileInfo ) : string
fileInfo this
return string

Property Details

DefaultMimeType public_oe static_oe property

public static string DefaultMimeType
return string

MimeSampleSize public_oe static_oe property

public static int MimeSampleSize
return int

UrlmonOverrides public_oe static_oe property

public static Dictionary UrlmonOverrides
return string>.Dictionary