C# Class TagLib.MusePack.File

Inheritance: TagLib.NonContainer.File
Mostra file Open project: mono/taglib-sharp Class Usage Examples

Public Methods

Method Description
File ( File abstraction ) : System

Constructs and initializes a new instance of for a specified file abstraction with an average read style.

File ( File abstraction, ReadStyle propertiesStyle ) : System

Constructs and initializes a new instance of for a specified file abstraction and specified read style.

File ( string path ) : System

Constructs and initializes a new instance of for a specified path in the local file system with an average read style.

File ( string path, ReadStyle propertiesStyle ) : System

Constructs and initializes a new instance of for a specified path in the local file system and specified read style.

GetTag ( TagTypes type, bool create ) : TagLib.Tag

Gets a tag of a specified type from the current instance, optionally creating a new tag if possible.

If a TagLib.Id3v2.Tag is added to the current instance, it will be placed at the start of the file. On the other hand, TagLib.Id3v1.Tag TagLib.Ape.Tag will be added to the end of the file. All other tag types will be ignored.

Protected Methods

Method Description
ReadEnd ( long end, ReadStyle propertiesStyle ) : void

Reads format specific information at the end of the file.

ReadProperties ( long start, long end, ReadStyle propertiesStyle ) : Properties

Reads the audio properties from the file represented by the current instance.

Method Details

File() public method

Constructs and initializes a new instance of for a specified file abstraction with an average read style.
/// is . ///
public File ( File abstraction ) : System
abstraction File /// A object to use when /// reading from and writing to the file. ///
return System

File() public method

Constructs and initializes a new instance of for a specified file abstraction and specified read style.
/// is . ///
public File ( File abstraction, ReadStyle propertiesStyle ) : System
abstraction File /// A object to use when /// reading from and writing to the file. ///
propertiesStyle ReadStyle /// A value specifying at what level /// of accuracy to read the media properties, or to ignore the properties. ///
return System

File() public method

Constructs and initializes a new instance of for a specified path in the local file system with an average read style.
/// is . ///
public File ( string path ) : System
path string /// A object containing the path of the /// file to use in the new instance. ///
return System

File() public method

Constructs and initializes a new instance of for a specified path in the local file system and specified read style.
/// is . ///
public File ( string path, ReadStyle propertiesStyle ) : System
path string /// A object containing the path of the /// file to use in the new instance. ///
propertiesStyle ReadStyle /// A value specifying at what level /// of accuracy to read the media properties, or to ignore the properties. ///
return System

GetTag() public method

Gets a tag of a specified type from the current instance, optionally creating a new tag if possible.
If a TagLib.Id3v2.Tag is added to the current instance, it will be placed at the start of the file. On the other hand, TagLib.Id3v1.Tag TagLib.Ape.Tag will be added to the end of the file. All other tag types will be ignored.
public GetTag ( TagTypes type, bool create ) : TagLib.Tag
type TagTypes /// A value indicating the /// type of tag to read. ///
create bool /// A value specifying whether or not to /// try and create the tag if one is not found. ///
return TagLib.Tag

ReadEnd() protected method

Reads format specific information at the end of the file.
protected ReadEnd ( long end, ReadStyle propertiesStyle ) : void
end long /// A value containing the seek position /// at which the media data ends and the tags begin. ///
propertiesStyle ReadStyle /// A value specifying at what level /// of accuracy to read the media properties, or to ignore the properties. ///
return void

ReadProperties() protected method

Reads the audio properties from the file represented by the current instance.
protected ReadProperties ( long start, long end, ReadStyle propertiesStyle ) : Properties
start long /// A value containing the seek position /// at which the tags end and the media data begins. ///
end long /// A value containing the seek position /// at which the media data ends and the tags begin. ///
propertiesStyle ReadStyle /// A value specifying at what level /// of accuracy to read the media properties, or to ignore the properties. ///
return Properties