C:\cpanrun\depot\main\contrib-patched\perl\CPAN\src\Audio-DB\blib/lib/Audio/DB/Parse/FlatFile.pm



Audio::DB::Parse::FlatFile.pm

Glean information on music files from a flat file of music file data.


DESCRIPTION

Audio::DB::Parse::FlatFile.pm is used internally by Audio::DB. It's internal, private methods will be called when trying to create or update a music database using the 'files' option:

      $mp3->load_database(-files   =>'/path/to/music_summary.txt',
                          -columns => [qw/artist album song year/],
                          -verbose  => 100);

All methods of Audio::DB::Parse::FlatFile are private (for now). You will never need to interact with Audio::DB::Parse::FlatFile objects directly.


REQUIRES


EXPORTS

No methods are exported.


METHODS

No public methods available.


PRIVATE METHODS

parse_files;


 Title   : parse_flatfiles
 Usage   : $mp3->parse_files;
 Function: Process list of text files containing ID3 information
 Returns : Nothing
 Args    : none
 Status  : Private

Used for loading pre-generated data from flat files into the database. Finds all the text files contained within top level directories provided during calls to the new() method. Processes each file, farming off a line at a time to cache_song.


AUTHOR

Copyright 2002-2004, Todd W. Harris <harris@cshl.org>.

This module is distributed under the same terms as Perl itself. Feel free to use, modify and redistribute it as long as you retain the correct attribution.


SEE ALSO

the Audio::DB manpage