C# Класс Tag.CompleteTag

Показать файл Открыть проект

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