net.sourceforge.mp3dings
Class Mp3FileReader
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Mp3FileReader
public Mp3FileReader()
Mp3FileReader
public Mp3FileReader(FilterCollection fc)
Mp3FileReader
public Mp3FileReader(FilterCollection fc,
int tagtype)
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)