|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.modules.repository.tags.writer.TagModifier
public class TagModifier
Class for writting tags to an audio file. We only use JAudiotagger for it. In general, for writting a complete tag, call setInfo.
Constructor Summary | |
---|---|
TagModifier()
|
Method Summary | |
---|---|
static void |
deleteTags(AudioFile file)
Delete tags. |
static void |
refreshAfterTagModify(java.util.List<AudioFile> audioFilesEditing)
Refresh after tag modify. |
static void |
setAlbum(AudioFile file,
java.lang.String album)
Writes album to tag. |
static void |
setGenre(AudioFile file,
java.lang.String genre)
Writes genre to tag. |
static void |
setInfo(AudioFile file,
Tag tag)
Writes tag to audiofile using JAudiotagger. |
static void |
setInfo(AudioFile file,
Tag tag,
boolean shouldEditCover,
byte[] cover)
Writes tag to audio file using JAudiotagger. |
static void |
setLyrics(AudioFile file,
java.lang.String lyrics)
Sets the lyrics. |
static void |
setTitles(AudioFile file,
java.lang.String newTitle)
Writes title name to tag. |
static void |
setTrackNumber(AudioFile file,
java.lang.Integer track)
Sets track number on a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagModifier()
Method Detail |
---|
public static void deleteTags(AudioFile file)
file
- the filepublic static void refreshAfterTagModify(java.util.List<AudioFile> audioFilesEditing)
audioFilesEditing
- the audio files editingpublic static void setAlbum(AudioFile file, java.lang.String album)
file
- File to which the tag should be writtenalbum
- Album of filepublic static void setGenre(AudioFile file, java.lang.String genre)
file
- File to which the tag should be writtengenre
- Genre of filepublic static void setInfo(AudioFile file, Tag tag)
file
- File to which the tags should be writtentag
- Tag to be writtenpublic static void setInfo(AudioFile file, Tag tag, boolean shouldEditCover, byte[] cover)
file
- File to which the tags should be writtentag
- Tag to be writtenpublic static void setLyrics(AudioFile file, java.lang.String lyrics)
file
- the filelyrics
- the lyricspublic static void setTitles(AudioFile file, java.lang.String newTitle)
file
- File to which the tag should be writtennewTitle
- New titlepublic static void setTrackNumber(AudioFile file, java.lang.Integer track)
file
- File to which the tag should be writtentrack
- Track number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |