public class MP3VectorMetaData extends AudioVectorMetaData
Modifier and Type | Field and Description |
---|---|
private String |
cacheAlbum |
private String |
cacheArtist |
private String |
cacheTitle |
private static String |
displayFormat |
private static String |
emptyLabel |
private org.blinkenlights.jid3.MP3File |
mp3File |
Constructor and Description |
---|
MP3VectorMetaData(File file) |
MP3VectorMetaData(File file,
String id) |
MP3VectorMetaData(String filename) |
Modifier and Type | Method and Description |
---|---|
private void |
createSearchCache() |
private static void |
fillListWithFiles(LinkedList<MP3VectorMetaData> lls,
File baseDir) |
private String |
getAlbum() |
private String |
getArtist() |
String |
getDisplayLabel()
Returns a String to display on screen.
|
private String |
getTitle() |
static void |
main(String[] args) |
boolean |
matches(Pattern pattern)
Tests if the vectors MetaData matches the given Pattern.
|
boolean |
matches(String pattern,
boolean ignoreCase)
Tests if the vector's MetaData matches the given pattern.
|
static void |
setDisplayLabelFormat(String format)
Define the Format of the DisplayLabel.
|
checkFileExistence, createMetaData, createMetaData, getAudioFile, getID, stripFileNamePreAndSuffix
createMetaData, equals, hashCode, matches, toString
private static String displayFormat
private static String emptyLabel
private String cacheTitle
private String cacheAlbum
private String cacheArtist
private final org.blinkenlights.jid3.MP3File mp3File
public MP3VectorMetaData(String filename) throws FileNotFoundException
FileNotFoundException
public MP3VectorMetaData(File file, String id) throws FileNotFoundException
FileNotFoundException
public MP3VectorMetaData(File file) throws FileNotFoundException
FileNotFoundException
public String getDisplayLabel()
AbstractVectorMetaData
getDisplayLabel
in class AudioVectorMetaData
public boolean matches(Pattern pattern)
AbstractVectorMetaData
matches
in class AudioVectorMetaData
pattern
- the Pattern to test.true
if the pattern matches.AbstractVectorMetaData.matches(String)
public boolean matches(String pattern, boolean ignoreCase)
AbstractVectorMetaData
matches
in class AudioVectorMetaData
pattern
- The pattern to match.ignoreCase
- set true
to ignore case considerations.true
if the pattern matches.AbstractVectorMetaData.matches(Pattern)
,
AbstractVectorMetaData.matches(String)
public static void setDisplayLabelFormat(String format)
The following macros are valid and can be used:
$artist
is replaced by the artists name$title
is replaced by the track title$album
is replaced by the albums name
The default format is $title - $artist
.
format
- the Format.public static void main(String[] args)
private static void fillListWithFiles(LinkedList<MP3VectorMetaData> lls, File baseDir) throws FileNotFoundException
FileNotFoundException
private String getArtist()
private String getTitle()
private String getAlbum()
private void createSearchCache()