Mp3dings 
20100427

net.sourceforge.mp3dings
Class Mp3FileReader

java.lang.Object
  extended by net.sourceforge.mp3dings.Mp3FileReader

public class Mp3FileReader
extends Object

The Mp3FileReader provides methods to read information from mp3 files and their ID3 tags. Not thread-safe.


Field Summary
static int ID3V1
          constants for constructor
static int ID3V2
           
protected static Pattern tidyJunk
           
protected static Pattern tidyTrim
           
 
Constructor Summary
Mp3FileReader()
           
Mp3FileReader(FilterCollection fc)
           
Mp3FileReader(FilterCollection fc, int tagtype)
           
 
Method Summary
 Object getField(File f, Field field)
           
 Object getFilenameField(String filename, Field field)
          Guesses artist, track and title from each filename.
 Object getID3Field(File mp3, Field field)
           
 Object postProcessField(Field field, Object val)
           
 void setFilters(FilterCollection fc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID3V1

public static final int ID3V1
constants for constructor

See Also:
Constant Field Values

ID3V2

public static final int ID3V2
See Also:
Constant Field Values

tidyJunk

protected static Pattern tidyJunk

tidyTrim

protected static Pattern tidyTrim
Constructor Detail

Mp3FileReader

public Mp3FileReader()

Mp3FileReader

public Mp3FileReader(FilterCollection fc)

Mp3FileReader

public Mp3FileReader(FilterCollection fc,
                     int tagtype)
Method Detail

getFilenameField

public Object getFilenameField(String filename,
                               Field field)
Guesses artist, track and title from each filename. Adds the information gathered in this way to the spreadsheet.


setFilters

public void setFilters(FilterCollection fc)

getField

public Object getField(File f,
                       Field field)

getID3Field

public Object getID3Field(File mp3,
                          Field field)

postProcessField

public Object postProcessField(Field field,
                               Object val)

Mp3dings 
20100427