C# 클래스 Tp.Utils.Mime.MimeTypes

Summary description for MimeTypes.
파일 보기 프로젝트 열기: TargetProcess/Target-Process-Plugins 1 사용 예제들

공개 메소드들

메소드 설명
ForName ( String name ) : MimeType

Return a MimeType from its name.

Get ( string filepath ) : MimeTypes

Return a MimeTypes instance.

GetMimeType ( Uri url ) : MimeType

Find the Mime Content Type of a document from its URL.

GetMimeType ( string name ) : MimeType

Find the Mime Content Type of a document from its name.

GetMimeTypeByContent ( Stream data ) : MimeType

Find the Mime Content Type of a stream from its content.

GetMimeTypeByExtension ( string name ) : MimeType
MimeTypes ( ) : System
MimeTypes ( string strFilepath ) : System

Should never be instanciated from outside

비공개 메소드들

메소드 설명
Add ( MimeType types ) : void

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).

메소드 상세

ForName() 공개 메소드

Return a MimeType from its name.
public ForName ( String name ) : MimeType
name String
리턴 MimeType

Get() 공개 정적인 메소드

Return a MimeTypes instance.
public static Get ( string filepath ) : MimeTypes
filepath string is the mime-types definitions xml file. ///
리턴 MimeTypes

GetMimeType() 공개 메소드

Find the Mime Content Type of a document from its URL.
public GetMimeType ( Uri url ) : MimeType
url System.Uri of the document to analyze. ///
리턴 MimeType

GetMimeType() 공개 메소드

Find the Mime Content Type of a document from its name.
public GetMimeType ( string name ) : MimeType
name string of the document to analyze. ///
리턴 MimeType

GetMimeTypeByContent() 공개 메소드

Find the Mime Content Type of a stream from its content.
public GetMimeTypeByContent ( Stream data ) : MimeType
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. /// ///
리턴 MimeType

GetMimeTypeByExtension() 공개 메소드

public GetMimeTypeByExtension ( string name ) : MimeType
name string
리턴 MimeType

MimeTypes() 공개 메소드

public MimeTypes ( ) : System
리턴 System

MimeTypes() 공개 메소드

Should never be instanciated from outside
public MimeTypes ( string strFilepath ) : System
strFilepath string
리턴 System