at.tuwien.ifs.somtoolbox.data.metadata
Class MP3VectorMetaData
java.lang.Object
at.tuwien.ifs.somtoolbox.data.metadata.AbstractVectorMetaData
at.tuwien.ifs.somtoolbox.data.metadata.AudioVectorMetaData
at.tuwien.ifs.somtoolbox.data.metadata.MP3VectorMetaData
public class MP3VectorMetaData
- extends AudioVectorMetaData
- Version:
- $Id: MP3VectorMetaData.java 3587 2010-05-21 10:35:33Z mayer $
- Author:
- Jakob Frank
Method Summary |
private void |
createSearchCache()
|
private static void |
fillListWithFiles(java.util.LinkedList<MP3VectorMetaData> lls,
java.io.File baseDir)
|
private java.lang.String |
getAlbum()
|
private java.lang.String |
getArtist()
|
java.lang.String |
getDisplayLabel()
Returns a String to display on screen. |
private java.lang.String |
getTitle()
|
static void |
main(java.lang.String[] args)
|
boolean |
matches(java.util.regex.Pattern pattern)
Tests if the vectors MetaData matches the given Pattern. |
boolean |
matches(java.lang.String pattern,
boolean ignoreCase)
Tests if the vector's MetaData matches the given pattern. |
static void |
setDisplayLabelFormat(java.lang.String format)
Define the Format of the DisplayLabel. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
displayFormat
private static java.lang.String displayFormat
emptyLabel
private static java.lang.String emptyLabel
cacheTitle
private java.lang.String cacheTitle
cacheAlbum
private java.lang.String cacheAlbum
cacheArtist
private java.lang.String cacheArtist
mp3File
private final org.blinkenlights.jid3.MP3File mp3File
MP3VectorMetaData
public MP3VectorMetaData(java.lang.String filename)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
MP3VectorMetaData
public MP3VectorMetaData(java.io.File file,
java.lang.String id)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
MP3VectorMetaData
public MP3VectorMetaData(java.io.File file)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
getDisplayLabel
public java.lang.String getDisplayLabel()
- Description copied from class:
AbstractVectorMetaData
- Returns a String to display on screen.
- Overrides:
getDisplayLabel
in class AudioVectorMetaData
- Returns:
- the (Display)Label
matches
public boolean matches(java.util.regex.Pattern pattern)
- Description copied from class:
AbstractVectorMetaData
- Tests if the vectors MetaData matches the given Pattern.
- Overrides:
matches
in class AudioVectorMetaData
- Parameters:
pattern
- the Pattern to test.
- Returns:
true
if the pattern matches.- See Also:
AbstractVectorMetaData.matches(String)
matches
public boolean matches(java.lang.String pattern,
boolean ignoreCase)
- Description copied from class:
AbstractVectorMetaData
- Tests if the vector's MetaData matches the given pattern. It is the vectors metadata's decision whether it wants
to be found by the given Pattern or not and how to handle wildcards.
- Overrides:
matches
in class AudioVectorMetaData
- Parameters:
pattern
- The pattern to match.ignoreCase
- set true
to ignore case considerations.
- Returns:
true
if the pattern matches.- See Also:
AbstractVectorMetaData.matches(Pattern)
,
AbstractVectorMetaData.matches(String)
setDisplayLabelFormat
public static void setDisplayLabelFormat(java.lang.String format)
- Define the Format of the DisplayLabel.
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
.
- Parameters:
format
- the Format.
main
public static void main(java.lang.String[] args)
fillListWithFiles
private static void fillListWithFiles(java.util.LinkedList<MP3VectorMetaData> lls,
java.io.File baseDir)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
getArtist
private java.lang.String getArtist()
getTitle
private java.lang.String getTitle()
getAlbum
private java.lang.String getAlbum()
createSearchCache
private void createSearchCache()