C# Class TagLib.Dsf.File

Inheritance: TagLib.File
Datei anzeigen Open project: MediaPortal/MPTagThat Class Usage Examples

Public Properties

Property Type Description
FileIdentifier ReadOnlyByteVector
FormatIdentifier ReadOnlyByteVector
ID3Identifier ReadOnlyByteVector

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.

RemoveTags ( TagTypes types ) : void

Removes a set of tag types from the current instance.

In order to remove all tags from a file, pass as types.

Save ( ) : void

Saves the changes made in the current instance to the file it represents.

Private Methods

Method Description
Read ( bool read_tags, ReadStyle style, uint &dsf_size, long &tag_start, long &tag_end ) : void

Reads the contents of the current instance determining the size of the dsf data, the area the tagging is in, and optionally reading in the tags and media properties.

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

RemoveTags() public method

Removes a set of tag types from the current instance.
In order to remove all tags from a file, pass as types.
public RemoveTags ( TagTypes types ) : void
types TagTypes /// A bitwise combined value /// containing tag types to be removed from the file. ///
return void

Save() public method

Saves the changes made in the current instance to the file it represents.
public Save ( ) : void
return void

Property Details

FileIdentifier public_oe static_oe property

The identifier used to recognize a DSF file.
public static ReadOnlyByteVector FileIdentifier
return ReadOnlyByteVector

FormatIdentifier public_oe static_oe property

The identifier used to recognize a Format chunk.
public static ReadOnlyByteVector FormatIdentifier
return ReadOnlyByteVector

ID3Identifier public_oe static_oe property

The identifier used to recognize a DSF ID3 chunk.
public static ReadOnlyByteVector ID3Identifier
return ReadOnlyByteVector