|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.mp3dings.utils.FilenamePatterns
public class FilenamePatterns
A set of patterns that can be used to retrieve information from an mp3 filename.
| Field Summary | |
|---|---|
static String |
DEFAULT_PATTERN
The default pattern for Artist (\1) and Title (\3)* |
static String |
DEFAULT_TRACK_PATTERN
The default pattern for Track (\1) * |
| Constructor Summary | |
|---|---|
FilenamePatterns()
Constructs* |
|
| Method Summary | |
|---|---|
Object[] |
apply(String[] filenames,
Field field)
Description of the Method |
Object |
apply(String filename,
Field field)
Description of the Method |
void |
clear()
Description of the Method |
String |
getCgString(Field field)
Gets the cgString attribute of the FilenamePatterns object |
Field[] |
getFields()
Gets the fields attribute of the FilenamePatterns object |
String |
getPattern(Field field)
Gets the pattern attribute of the FilenamePatterns object |
static FilenamePatterns |
load(Preferences p)
Recreates previously saved FilenamePatterns from the specified preferences node. |
static FilenamePatterns |
mp3dingsDefault()
Description of the Method |
void |
putPattern(Field field,
Pattern p,
String cgs)
Description of the Method |
void |
putPattern(Field field,
String p,
String cgs)
Description of the Method |
void |
save(Preferences p)
Saves these FilenamePatterns to a Preferences node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_PATTERN
public static final String DEFAULT_TRACK_PATTERN
| Constructor Detail |
|---|
public FilenamePatterns()
| Method Detail |
|---|
public void putPattern(Field field,
Pattern p,
String cgs)
field - Description of the Parameterp - Description of the Parametercgs - Description of the Parameter
public void putPattern(Field field,
String p,
String cgs)
field - Description of the Parameterp - Description of the Parametercgs - Description of the Parameterpublic Field[] getFields()
public String getPattern(Field field)
field - Description of the Parameter
public String getCgString(Field field)
field - Description of the Parameter
public void clear()
public Object[] apply(String[] filenames,
Field field)
filenames - Description of the Parameterfield - Description of the Parameter
public Object apply(String filename,
Field field)
filename - Description of the Parameterfield - Description of the Parameter
public static FilenamePatterns load(Preferences p)
save(java.util.prefs.Preferences).
p - Description of the Parameter
save(java.util.prefs.Preferences)public static FilenamePatterns mp3dingsDefault()
public void save(Preferences p)
p - Description of the Parameterload(java.util.prefs.Preferences)
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||