C# Class Tag.CompleteTag

显示文件 Open project: zencoders/sambatyon

Private Properties

Property Type Description
_fillTagMpeg bool
contentString string

Public Methods

Method Description
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.

Private Methods

Method Description
_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.

Method Details

CompleteTag() public method

Tag Default constructor.
public CompleteTag ( )

CompleteTag() public method

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

CompleteTag() public method

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

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
return void

GetObjectData() public method

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