C# Class NContrib.MimeHelper

Afficher le fichier Open project: veracross/ncontrib

Méthodes publiques

Свойство Type Description
DefaultMimeType string
MimeSampleSize int
UrlmonOverrides string>.Dictionary

Méthodes publiques

Méthode 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

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

Method Details

GetMimeFromBytes() public static méthode

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

GetMimeFromBytes() public static méthode

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
Résultat string

GetMimeFromFileName() public static méthode

public static GetMimeFromFileName ( string filename ) : string
filename string
Résultat string

GetMimeFromFileName() public static méthode

public static GetMimeFromFileName ( this fileInfo ) : string
fileInfo this
Résultat string

Property Details

DefaultMimeType public_oe static_oe property

public static string DefaultMimeType
Résultat string

MimeSampleSize public_oe static_oe property

public static int MimeSampleSize
Résultat int

UrlmonOverrides public_oe static_oe property

public static Dictionary UrlmonOverrides
Résultat string>.Dictionary