예제 #1
0
 public String getTitle() {
   if (mp3File.hasId3v2Tag() && mp3File.getId3v2Tag().getTitle() != null) {
     return mp3File.getId3v2Tag().getTitle();
   }
   if (mp3File.hasId3v1Tag() && mp3File.getId3v1Tag().getTitle() != null) {
     return mp3File.getId3v1Tag().getTitle();
   }
   return NO_TITLE;
 }
예제 #2
0
 public String getTrack() {
   if (mp3File.hasId3v2Tag() && mp3File.getId3v2Tag().getTrack() != null) {
     return mp3File.getId3v2Tag().getTrack();
   }
   if (mp3File.hasId3v1Tag() && mp3File.getId3v1Tag().getTrack() != null) {
     return mp3File.getId3v1Tag().getTrack();
   }
   return UNKNOWN_TRACK;
 }
예제 #3
0
 public String getArtist() {
   if (mp3File.hasId3v2Tag() && mp3File.getId3v2Tag().getArtist() != null) {
     return mp3File.getId3v2Tag().getArtist();
   }
   if (mp3File.hasId3v1Tag() && mp3File.getId3v1Tag().getArtist() != null) {
     return mp3File.getId3v1Tag().getArtist();
   }
   return UNKNOWN_ARTIST;
 }