Table of Contents

Class MIMETypeUtil

Namespace
Glitch9.IO.Files
public static class MIMETypeUtil
Inheritance
MIMETypeUtil
Inherited Members

Methods

GetFileExtension(MIMEType)

public static string GetFileExtension(this MIMEType contentType)

Parameters

contentType MIMEType

Returns

string

GetHeader(MIMEType)

public static RESTHeader GetHeader(this MIMEType mimeType)

Parameters

mimeType MIMEType

Returns

RESTHeader

IsAudio(MIMEType)

public static bool IsAudio(this MIMEType mimeType)

Parameters

mimeType MIMEType

Returns

bool

IsImage(MIMEType)

public static bool IsImage(this MIMEType mimeType)

Parameters

mimeType MIMEType

Returns

bool

Parse(string)

public static MIMEType Parse(string contentTypeAsString)

Parameters

contentTypeAsString string

Returns

MIMEType

ParseFromPath(string)

public static MIMEType ParseFromPath(string filePath)

Parameters

filePath string

Returns

MIMEType