Method | Description | |
---|---|---|
ForName ( String name ) : |
Return a MimeType from its name.
|
|
Get ( string filepath ) : |
Return a MimeTypes instance.
|
|
GetMimeType ( |
Find the Mime Content Type of a document from its URL.
|
|
GetMimeType ( string name ) : |
Find the Mime Content Type of a document from its name.
|
|
GetMimeTypeByContent ( Stream data ) : |
Find the Mime Content Type of a stream from its content.
|
|
GetMimeTypeByExtension ( string name ) : |
||
MimeTypes ( ) : System | ||
MimeTypes ( string strFilepath ) : System |
Should never be instanciated from outside
|
Method | Description | |
---|---|---|
Add ( |
Add the specified mime-types in the repository.
|
|
GetMimeTypes ( string name ) : Tp.Utils.Mime.MimeType[] |
Returns an array of matching MimeTypes from the specified name (many MimeTypes can have the same registered extensions).
|
public static Get ( string filepath ) : |
||
filepath | string | is the mime-types definitions xml file. /// |
return |
public GetMimeType ( |
||
url | of the document to analyze. /// | |
return |
public GetMimeType ( string name ) : |
||
name | string | of the document to analyze. /// |
return |
public GetMimeTypeByContent ( Stream data ) : |
||
data | Stream | are the first bytes of data of the content to analyze. /// Depending on the length of provided data, all known MimeTypes are /// checked. If the length of provided data is greater or egals to /// the value returned by {@link #getMinLength()}, then all known /// MimeTypes are checked, otherwise only the MimeTypes that could be /// analyzed with the length of provided data are analyzed. /// /// |
return |
public GetMimeTypeByExtension ( string name ) : |
||
name | string | |
return |
public MimeTypes ( string strFilepath ) : System | ||
strFilepath | string | |
return | System |