Class MimeTypeUtils
Inheritance
System.Object
MimeTypeUtils
Assembly: Steeltoe.Common.dll
Syntax
public static class MimeTypeUtils : object
Fields
|
Edit this page
View Source
ALL
Declaration
public static readonly MimeType ALL
Field Value
|
Edit this page
View Source
ALL_VALUE
Declaration
public static readonly string ALL_VALUE
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
APPLICATION_JSON
Declaration
public static readonly MimeType APPLICATION_JSON
Field Value
|
Edit this page
View Source
APPLICATION_JSON_VALUE
Declaration
public static readonly string APPLICATION_JSON_VALUE
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
APPLICATION_OCTET_STREAM
Declaration
public static readonly MimeType APPLICATION_OCTET_STREAM
Field Value
|
Edit this page
View Source
APPLICATION_OCTET_STREAM_VALUE
Declaration
public static readonly string APPLICATION_OCTET_STREAM_VALUE
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
APPLICATION_XML
Declaration
public static readonly MimeType APPLICATION_XML
Field Value
|
Edit this page
View Source
APPLICATION_XML_VALUE
Declaration
public static readonly string APPLICATION_XML_VALUE
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
IMAGE_GIF
Declaration
public static readonly MimeType IMAGE_GIF
Field Value
|
Edit this page
View Source
IMAGE_GIF_VALUE
Declaration
public static readonly string IMAGE_GIF_VALUE
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
IMAGE_JPEG
Declaration
public static readonly MimeType IMAGE_JPEG
Field Value
|
Edit this page
View Source
IMAGE_JPEG_VALUE
Declaration
public static readonly string IMAGE_JPEG_VALUE
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
IMAGE_PNG
Declaration
public static readonly MimeType IMAGE_PNG
Field Value
|
Edit this page
View Source
IMAGE_PNG_VALUE
Declaration
public static readonly string IMAGE_PNG_VALUE
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
SPECIFICITY_COMPARATOR
Declaration
public static readonly IComparer<MimeType> SPECIFICITY_COMPARATOR
Field Value
|
Edit this page
View Source
TEXT_HTML
Declaration
public static readonly MimeType TEXT_HTML
Field Value
|
Edit this page
View Source
TEXT_HTML_VALUE
Declaration
public static readonly string TEXT_HTML_VALUE
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
TEXT_PLAIN
Declaration
public static readonly MimeType TEXT_PLAIN
Field Value
|
Edit this page
View Source
TEXT_PLAIN_VALUE
Declaration
public static readonly string TEXT_PLAIN_VALUE
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
TEXT_XML
Declaration
public static readonly MimeType TEXT_XML
Field Value
|
Edit this page
View Source
TEXT_XML_VALUE
Declaration
public static readonly string TEXT_XML_VALUE
Field Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
GenerateMultipartBoundary()
Declaration
public static char[] GenerateMultipartBoundary()
Returns
Type |
Description |
System.Char[] |
|
|
Edit this page
View Source
GenerateMultipartBoundaryString()
Declaration
public static string GenerateMultipartBoundaryString()
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
ParseMimeType(String)
Declaration
public static MimeType ParseMimeType(string mimeType)
Parameters
Type |
Name |
Description |
System.String |
mimeType |
|
Returns
|
Edit this page
View Source
ParseMimeTypes(String)
Declaration
public static List<MimeType> ParseMimeTypes(string mimeTypes)
Parameters
Type |
Name |
Description |
System.String |
mimeTypes |
|
Returns
|
Edit this page
View Source
SortBySpecificity(List<MimeType>)
Declaration
public static void SortBySpecificity(List<MimeType> mimeTypes)
Parameters
Type |
Name |
Description |
List<MimeType> |
mimeTypes |
|
|
Edit this page
View Source
Tokenize(String)
Declaration
public static List<string> Tokenize(string mimeTypes)
Parameters
Type |
Name |
Description |
System.String |
mimeTypes |
|
Returns
Type |
Description |
List<System.String> |
|
|
Edit this page
View Source
Tostring(ICollection<MimeType>)
Declaration
public static string Tostring(ICollection<MimeType> mimeTypes)
Parameters
Type |
Name |
Description |
ICollection<MimeType> |
mimeTypes |
|
Returns
Type |
Description |
System.String |
|