C# Class Achamenes.ID3.Frames.TrackTextFrame

Inheritance: TextFrame
Show file Open project: sahands/a-id3

Public Methods

Method Description
CreateParser ( ID3v2MajorVersion version, string frameID ) : Achamenes.ID3.Frames.Parsers.FrameParser

Creates a FrameParser class for the given version and frameID.

CreateWriter ( ID3v2MajorVersion version, EncodingScheme encoding ) : Achamenes.ID3.Frames.Writers.FrameWriter

TrackTextFrame ( int trackNumber ) : System

Initializes a new instance of TrackTextFrame

TrackTextFrame ( int trackNumber, int totalTracks ) : System

Initializes a new instance of TrackTextFrame

TrackTextFrame ( string text ) : System

Initializes a new instance of TrackTextFrame

The given value should be in the trackNumber[/totalTracks] format. See examples below for more details.

Protected Methods

Method Description
Parse ( ) : void

Parses this.Text and extracts the TrackNumber and TotalTracks numbers out of it.

Validate ( string value ) : void

Parses the given string value and throws exceptions if it is an invalid text value for a track frame.

Method Details

CreateParser() public static method

Creates a FrameParser class for the given version and frameID.
public static CreateParser ( ID3v2MajorVersion version, string frameID ) : Achamenes.ID3.Frames.Parsers.FrameParser
version ID3v2MajorVersion ID3 v2 major version to create the parser for.
frameID string The frame ID of the frame to be parsed.
return Achamenes.ID3.Frames.Parsers.FrameParser

CreateWriter() public method

public CreateWriter ( ID3v2MajorVersion version, EncodingScheme encoding ) : Achamenes.ID3.Frames.Writers.FrameWriter
version ID3v2MajorVersion ID3 v2 major version to create the writer for.
encoding EncodingScheme The encoding scheme to use for writing encoded text fields.
return Achamenes.ID3.Frames.Writers.FrameWriter

Parse() protected method

Parses this.Text and extracts the TrackNumber and TotalTracks numbers out of it.
protected Parse ( ) : void
return void

TrackTextFrame() public method

Initializes a new instance of TrackTextFrame
public TrackTextFrame ( int trackNumber ) : System
trackNumber int Track number.
return System

TrackTextFrame() public method

Initializes a new instance of TrackTextFrame
public TrackTextFrame ( int trackNumber, int totalTracks ) : System
trackNumber int Track number.
totalTracks int Total number of tracks.
return System

TrackTextFrame() public method

Initializes a new instance of TrackTextFrame
The given value should be in the trackNumber[/totalTracks] format. See examples below for more details.
/// The given text value was not in correct format. ///
public TrackTextFrame ( string text ) : System
text string /// Text string describing the frame. ///
return System

Validate() protected method

Parses the given string value and throws exceptions if it is an invalid text value for a track frame.
protected Validate ( string value ) : void
value string
return void