|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.farng.mp3.filename.FilenameTagBuilder
This class builds a FilenameTag
. The main method to call is createFilenameTagFromMP3File
.
Other methods are public in order to update parts of the tag if needed.
Method Summary | |
static AbstractFilenameComposite |
createCompositeFromToken(java.lang.String token)
Creates a FilenameComposite tree with the given string. |
static FilenameTag |
createEmptyFilenameTag()
|
static FilenameTag |
createFilenameTagFromMP3File(MP3File mp3File)
This method will create a complete FilenameTag from the given mp3File and from the options in TagOptionSingleton . |
static void |
updateCompositeFromAllOption(AbstractFilenameComposite composite)
Traverse the composite and set the class field to match keywords found in TagOptionSingleton. |
static void |
updateCompositeFromAllTag(AbstractFilenameComposite composite,
MP3File mp3File)
Traverse the composite and set the class field to match frames from all three other tags that are already found in the MP3 file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static AbstractFilenameComposite createCompositeFromToken(java.lang.String token) throws TagException
TagOptionSingleton
class
token
- filename to parse
TagException
- is thrown if there are unmatched parenthesispublic static FilenameTag createEmptyFilenameTag()
public static FilenameTag createFilenameTagFromMP3File(MP3File mp3File) throws java.lang.Exception
TagOptionSingleton
. This will call all other necessary methods in this builder class.
mp3File
- MP3 file to create the FilenameTag from.
java.lang.Exception
- is thrown on any IO errors, or parsing errors such as unmatched parenthesispublic static void updateCompositeFromAllOption(AbstractFilenameComposite composite)
composite
- composite to update.public static void updateCompositeFromAllTag(AbstractFilenameComposite composite, MP3File mp3File)
composite
- composite to updatemp3File
- mp3file to match all it's tags against.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |