C# 클래스 Tag.CompleteTag

파일 보기 프로젝트 열기: zencoders/sambatyon

Private Properties

프로퍼티 타입 설명
_fillTagMpeg bool
contentString string

공개 메소드들

메소드 설명
CompleteTag ( )

Tag Default constructor.

CompleteTag ( SerializationInfo info, StreamingContext ctxt )

Method used for Serialization purpose

CompleteTag ( string filename )

Main constructor of the Tag. This reads information from the given filename and initializes all fields of the tag. It's important to know that this constructor has a considerable weight in term of processor time because it calculates two SHA1 hash: one for the entire file and one for the relevant tag information.

FillTag ( string filename ) : void

Public method used to fill the tag. This relies on private specific method for each type of audio file. Currently only MPEG files are supported.

GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Method used for serialization purpose.

비공개 메소드들

메소드 설명
_fillTagMpeg ( string filename ) : bool

Reads information from a MPEG file and fills the tag fields.

contentString ( ) : string

Return a string representation of the relevant information of the tag. This method is used to construct the TagHash and its output is given as input for the SHA1 Hashing function.

메소드 상세

CompleteTag() 공개 메소드

Tag Default constructor.
public CompleteTag ( )

CompleteTag() 공개 메소드

Method used for Serialization purpose
public CompleteTag ( SerializationInfo info, StreamingContext ctxt )
info SerializationInfo
ctxt StreamingContext

CompleteTag() 공개 메소드

Main constructor of the Tag. This reads information from the given filename and initializes all fields of the tag. It's important to know that this constructor has a considerable weight in term of processor time because it calculates two SHA1 hash: one for the entire file and one for the relevant tag information.
public CompleteTag ( string filename )
filename string Filename from whom extract the information for the tag

FillTag() 공개 메소드

Public method used to fill the tag. This relies on private specific method for each type of audio file. Currently only MPEG files are supported.
Thrown if the file type is not supported Thrown if the file does not exist
public FillTag ( string filename ) : void
filename string Filename from whom extract the information for the tag
리턴 void

GetObjectData() 공개 메소드

Method used for serialization purpose.
public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info SerializationInfo
context StreamingContext
리턴 void