Naanou.ResourceExchange
Class MetadataExtractor

Extracts metadata from files

Constructor Summary
MetadataExtractor()
        Initializes a new instance of the MetadataExtractor class.

Method Summary
Naanou.Common.Metadata[] Extract(string fullPath, string extension, bool invalidFile)
         Extract metadata from a file of unknown type
Naanou.Common.Metadata[] ExtractAvi(string fullPath, bool invalidFile)
         Adds the following metadata: Size (dimensons), Duration, Codec (four-cc)
Naanou.Common.Metadata[] ExtractImage(string fullPath, bool invalidFile)
Naanou.Common.Metadata[] ExtractMp3(string fullPath, bool invalidFile)
         Adds the following metadata, where available: Bitrate, Duration, Title, Album, Artist, Genre, Comments, Year, Track

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

MetadataExtractor

public MetadataExtractor()

Initializes a new instance of the MetadataExtractor class.

Method Detail

Extract

internal Naanou.Common.Metadata[] Extract(string fullPath,
                                          string extension,
                                          bool invalidFile)

Extract metadata from a file of unknown type

Metadata added: Size, Pixel, Format, Artist, Equip, Copyright, Descr

Parameters:
fullPath - Full path to file
extension - Extension of file
invalidFile - Indicates if file is invalid
Returns:
Array of metadata for file (note some indexes may be empty)

ExtractAvi

private Naanou.Common.Metadata[] ExtractAvi(string fullPath,
                                            bool invalidFile)

Adds the following metadata: Size (dimensons), Duration, Codec (four-cc)

Parameters:
fullPath -
invalidFile -
Returns:

ExtractImage

private Naanou.Common.Metadata[] ExtractImage(string fullPath,
                                              bool invalidFile)


ExtractMp3

private Naanou.Common.Metadata[] ExtractMp3(string fullPath,
                                            bool invalidFile)

Adds the following metadata, where available: Bitrate, Duration, Title, Album, Artist, Genre, Comments, Year, Track

Parameters:
fullPath -
invalidFile -
Returns: