C# Class Tag.CompleteTag

Afficher le fichier Open project: zencoders/sambatyon

Private Properties

Свойство Type Description
_fillTagMpeg bool
contentString string

Méthodes publiques

Méthode 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

Méthode 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 méthode

Tag Default constructor.
public CompleteTag ( )

CompleteTag() public méthode

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

CompleteTag() public méthode

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 méthode

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
Résultat void

GetObjectData() public méthode

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