C# Class Achamenes.ID3.TagBase

Show file Open project: sahands/a-id3 Class Usage Examples

Public Methods

Method Description
ReadFromFile ( string fileName ) : ID3v2MajorVersion
ReadFromFile ( string fileName, FrameParserFactory frameParserFactory ) : ID3v2MajorVersion
RemoveTag ( string fileName ) : bool

Removes any attached ID3v2 tags attached to the given file. Does not change the ID3v1 tags.

SearchForFrame ( Type frameType ) : Frame
TagBase ( ) : System
WriteToFile ( string fileName, ID3v2MajorVersion version, EncodingScheme encoding ) : void

Private Methods

Method Description
CopyFromStreamToStream ( Stream sourceStream, Stream destStream ) : void
GetBackupFileName ( string fileName ) : string
GetTempIntermediateFileName ( string fileName ) : string
RaiseReadingWarning ( NonFatalException exception, string frameID ) : void
RaiseWritingWarning ( NonFatalException exception, Frame frameBeingWritten ) : void
Read ( Stream stream, FrameParserFactory frameParserFactory ) : ID3v2MajorVersion
WriteFrame ( Frame frame, Stream stream, ID3v2MajorVersion version, EncodingScheme encoding ) : void
WriteFrames ( Stream stream, ID3v2MajorVersion version, EncodingScheme encoding ) : void

Method Details

ReadFromFile() public method

public ReadFromFile ( string fileName ) : ID3v2MajorVersion
fileName string
return ID3v2MajorVersion

ReadFromFile() public method

public ReadFromFile ( string fileName, FrameParserFactory frameParserFactory ) : ID3v2MajorVersion
fileName string
frameParserFactory FrameParserFactory
return ID3v2MajorVersion

RemoveTag() public static method

Removes any attached ID3v2 tags attached to the given file. Does not change the ID3v1 tags.
public static RemoveTag ( string fileName ) : bool
fileName string Full path of the file whose tags are to be removed.
return bool

SearchForFrame() public method

public SearchForFrame ( Type frameType ) : Frame
frameType Type
return Frame

TagBase() public method

public TagBase ( ) : System
return System

WriteToFile() public method

public WriteToFile ( string fileName, ID3v2MajorVersion version, EncodingScheme encoding ) : void
fileName string
version ID3v2MajorVersion
encoding EncodingScheme
return void